chromium/v8/test/cctest/compiler/test-js-constant-cache.cc

// Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/codegen/assembler.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/js-heap-broker.h"
#include "src/compiler/node-properties.h"
#include "src/heap/factory-inl.h"
#include "test/cctest/cctest.h"
#include "test/cctest/compiler/js-heap-broker-base.h"
#include "test/common/value-helper.h"

namespace v8 {
namespace internal {
namespace compiler {

class JSCacheTesterHelper {};


// TODO(dcarney): JSConstantCacheTester inherits from JSGraph???
class JSConstantCacheTester : public HandleAndZoneScope,
                              public JSCacheTesterHelper,
                              public JSGraph,
                              public JSHeapBrokerTestBase {};

TEST(ZeroConstant1) {}


TEST(MinusZeroConstant) {}


TEST(ZeroConstant2) {}


TEST(OneConstant1) {}


TEST(OneConstant2) {}


TEST(Canonicalizations) {}


TEST(NoAliasing) {}


TEST(CanonicalizingNumbers) {}


TEST(HeapNumbers) {}


TEST(OddballHandle) {}


TEST(OddballValues) {}


TEST(ExternalReferences) {}


static bool Contains(NodeVector* nodes, Node* n) {}


static void CheckGetCachedNodesContains(JSConstantCacheTester* T, Node* n) {}


TEST(JSGraph_GetCachedNodes1) {}


TEST(JSGraph_GetCachedNodes_int32) {}


TEST(JSGraph_GetCachedNodes_float64) {}


TEST(JSGraph_GetCachedNodes_int64) {}


TEST(JSGraph_GetCachedNodes_number) {}


TEST(JSGraph_GetCachedNodes_external) {}


TEST(JSGraph_GetCachedNodes_together) {}

}  // namespace compiler
}  // namespace internal
}  // namespace v8