OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/parser.h" | 9 #include "src/parser.h" |
10 #include "src/zone.h" | 10 #include "src/zone.h" |
11 | 11 |
12 #include "src/compiler/common-operator.h" | 12 #include "src/compiler/common-operator.h" |
13 #include "src/compiler/graph.h" | 13 #include "src/compiler/graph.h" |
14 #include "src/compiler/linkage.h" | 14 #include "src/compiler/linkage.h" |
15 #include "src/compiler/machine-operator.h" | 15 #include "src/compiler/machine-operator.h" |
16 #include "src/compiler/node.h" | 16 #include "src/compiler/node.h" |
17 #include "src/compiler/operator.h" | 17 #include "src/compiler/operator.h" |
18 #include "src/compiler/pipeline.h" | 18 #include "src/compiler/pipeline.h" |
19 #include "src/compiler/schedule.h" | 19 #include "src/compiler/schedule.h" |
20 #include "test/cctest/cctest.h" | 20 #include "test/cctest/cctest.h" |
21 | 21 |
22 #if V8_TURBOFAN_TARGET | 22 #if V8_TURBOFAN_TARGET |
23 | 23 |
| 24 namespace test_linkage { |
| 25 |
24 using namespace v8::internal; | 26 using namespace v8::internal; |
25 using namespace v8::internal::compiler; | 27 using namespace v8::internal::compiler; |
26 | 28 |
27 static Operator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite, | 29 static Operator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite, |
28 "dummy", 0, 0, 0, 0, 0, 0); | 30 "dummy", 0, 0, 0, 0, 0, 0); |
29 | 31 |
30 // So we can get a real JS function. | 32 // So we can get a real JS function. |
31 static Handle<JSFunction> Compile(const char* source) { | 33 static Handle<JSFunction> Compile(const char* source) { |
32 Isolate* isolate = CcTest::i_isolate(); | 34 Isolate* isolate = CcTest::i_isolate(); |
33 Handle<String> source_code = isolate->factory() | 35 Handle<String> source_code = isolate->factory() |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 109 |
108 TEST(TestLinkageRuntimeCall) { | 110 TEST(TestLinkageRuntimeCall) { |
109 // TODO(titzer): test linkage creation for outgoing runtime calls. | 111 // TODO(titzer): test linkage creation for outgoing runtime calls. |
110 } | 112 } |
111 | 113 |
112 | 114 |
113 TEST(TestLinkageStubCall) { | 115 TEST(TestLinkageStubCall) { |
114 // TODO(titzer): test linkage creation for outgoing stub calls. | 116 // TODO(titzer): test linkage creation for outgoing stub calls. |
115 } | 117 } |
116 | 118 |
| 119 } // namespace test_linkage |
117 | 120 |
118 #endif // V8_TURBOFAN_TARGET | 121 #endif // V8_TURBOFAN_TARGET |
OLD | NEW |