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 | |
23 | |
24 using namespace v8::internal; | 22 using namespace v8::internal; |
25 using namespace v8::internal::compiler; | 23 using namespace v8::internal::compiler; |
26 | 24 |
27 static Operator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite, | 25 static Operator dummy_operator(IrOpcode::kParameter, Operator::kNoWrite, |
28 "dummy", 0, 0, 0, 0, 0, 0); | 26 "dummy", 0, 0, 0, 0, 0, 0); |
29 | 27 |
30 // So we can get a real JS function. | 28 // So we can get a real JS function. |
31 static Handle<JSFunction> Compile(const char* source) { | 29 static Handle<JSFunction> Compile(const char* source) { |
32 Isolate* isolate = CcTest::i_isolate(); | 30 Isolate* isolate = CcTest::i_isolate(); |
33 Handle<String> source_code = isolate->factory() | 31 Handle<String> source_code = isolate->factory() |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 | 104 |
107 | 105 |
108 TEST(TestLinkageRuntimeCall) { | 106 TEST(TestLinkageRuntimeCall) { |
109 // TODO(titzer): test linkage creation for outgoing runtime calls. | 107 // TODO(titzer): test linkage creation for outgoing runtime calls. |
110 } | 108 } |
111 | 109 |
112 | 110 |
113 TEST(TestLinkageStubCall) { | 111 TEST(TestLinkageStubCall) { |
114 // TODO(titzer): test linkage creation for outgoing stub calls. | 112 // TODO(titzer): test linkage creation for outgoing stub calls. |
115 } | 113 } |
116 | |
117 #endif // V8_TURBOFAN_TARGET | |
OLD | NEW |