Commit 5a5c115e authored by ishell's avatar ishell Committed by Commit bot

Move test/cctest/compiler/test-code-stub-assembler.cc to test/cctest directory.

... since CodeStubAssembler does not belong to v8::internal::compiler namespace anymore.

Review-Url: https://codereview.chromium.org/2035533003
Cr-Commit-Position: refs/heads/master@{#36683}
parent b5a2b4db
......@@ -19,7 +19,6 @@ executable("cctest") {
"compiler/graph-builder-tester.h",
"compiler/test-basic-block-profiler.cc",
"compiler/test-branch-combine.cc",
"compiler/test-code-stub-assembler.cc",
"compiler/test-gap-resolver.cc",
"compiler/test-graph-visualizer.cc",
"compiler/test-instruction.cc",
......@@ -94,6 +93,7 @@ executable("cctest") {
"test-bit-vector.cc",
"test-circular-queue.cc",
"test-code-cache.cc",
"test-code-stub-assembler.cc",
"test-compiler.cc",
"test-constantpool.cc",
"test-conversions.cc",
......
......@@ -53,7 +53,6 @@
'compiler/graph-builder-tester.h',
'compiler/test-basic-block-profiler.cc',
'compiler/test-branch-combine.cc',
'compiler/test-code-stub-assembler.cc',
'compiler/test-gap-resolver.cc',
'compiler/test-graph-visualizer.cc',
'compiler/test-instruction.cc',
......@@ -129,6 +128,7 @@
'test-bit-vector.cc',
'test-circular-queue.cc',
'test-code-cache.cc',
'test-code-stub-assembler.cc',
'test-compiler.cc',
'test-constantpool.cc',
'test-conversions.cc',
......
......@@ -8,8 +8,9 @@
namespace v8 {
namespace internal {
namespace compiler {
using compiler::FunctionTester;
using compiler::Node;
class CodeStubAssemblerTester : public CodeStubAssembler {
public:
......@@ -31,7 +32,6 @@ class CodeStubAssemblerTester : public CodeStubAssembler {
LocalContext context_;
};
TEST(SimpleSmiReturn) {
Isolate* isolate(CcTest::InitIsolateOnce());
VoidDescriptor descriptor(isolate);
......@@ -43,7 +43,6 @@ TEST(SimpleSmiReturn) {
CHECK_EQ(37, Handle<Smi>::cast(result.ToHandleChecked())->value());
}
TEST(SimpleIntPtrReturn) {
Isolate* isolate(CcTest::InitIsolateOnce());
VoidDescriptor descriptor(isolate);
......@@ -57,7 +56,6 @@ TEST(SimpleIntPtrReturn) {
reinterpret_cast<intptr_t>(*result.ToHandleChecked()));
}
TEST(SimpleDoubleReturn) {
Isolate* isolate(CcTest::InitIsolateOnce());
VoidDescriptor descriptor(isolate);
......@@ -69,7 +67,6 @@ TEST(SimpleDoubleReturn) {
CHECK_EQ(0.5, Handle<HeapNumber>::cast(result.ToHandleChecked())->value());
}
TEST(SimpleCallRuntime1Arg) {
Isolate* isolate(CcTest::InitIsolateOnce());
VoidDescriptor descriptor(isolate);
......@@ -83,7 +80,6 @@ TEST(SimpleCallRuntime1Arg) {
CHECK_EQ(0, Handle<Smi>::cast(result.ToHandleChecked())->value());
}
TEST(SimpleTailCallRuntime1Arg) {
Isolate* isolate(CcTest::InitIsolateOnce());
VoidDescriptor descriptor(isolate);
......@@ -97,7 +93,6 @@ TEST(SimpleTailCallRuntime1Arg) {
CHECK_EQ(0, Handle<Smi>::cast(result.ToHandleChecked())->value());
}
TEST(SimpleCallRuntime2Arg) {
Isolate* isolate(CcTest::InitIsolateOnce());
VoidDescriptor descriptor(isolate);
......@@ -112,7 +107,6 @@ TEST(SimpleCallRuntime2Arg) {
CHECK_EQ(16, Handle<Smi>::cast(result.ToHandleChecked())->value());
}
TEST(SimpleTailCallRuntime2Arg) {
Isolate* isolate(CcTest::InitIsolateOnce());
VoidDescriptor descriptor(isolate);
......@@ -389,6 +383,5 @@ TEST(TestToConstant) {
CHECK(!m.ToInt64Constant(a, value64));
}
} // namespace compiler
} // namespace internal
} // namespace v8
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment