#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 { … };
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) { … }
}
}
}