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 // TODO(jochen): Remove this after the setting is turned on globally. | 5 // TODO(jochen): Remove this after the setting is turned on globally. |
6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
7 | 7 |
8 #include "src/compiler/code-generator.h" | 8 #include "src/compiler/code-generator.h" |
9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
11 #include "src/compiler/instruction.h" | 11 #include "src/compiler/instruction.h" |
12 #include "src/compiler/linkage.h" | 12 #include "src/compiler/linkage.h" |
13 #include "src/compiler/machine-operator.h" | 13 #include "src/compiler/machine-operator.h" |
14 #include "src/compiler/node.h" | 14 #include "src/compiler/node.h" |
15 #include "src/compiler/operator.h" | 15 #include "src/compiler/operator.h" |
16 #include "src/compiler/schedule.h" | 16 #include "src/compiler/schedule.h" |
17 #include "src/compiler/scheduler.h" | 17 #include "src/compiler/scheduler.h" |
18 #include "test/cctest/cctest.h" | 18 #include "test/cctest/cctest.h" |
19 | 19 |
20 using namespace v8::internal; | 20 namespace v8 { |
21 using namespace v8::internal::compiler; | 21 namespace internal { |
| 22 namespace compiler { |
22 | 23 |
23 typedef v8::internal::compiler::Instruction TestInstr; | 24 typedef v8::internal::compiler::Instruction TestInstr; |
24 typedef v8::internal::compiler::InstructionSequence TestInstrSeq; | 25 typedef v8::internal::compiler::InstructionSequence TestInstrSeq; |
25 | 26 |
26 // A testing helper for the register code abstraction. | 27 // A testing helper for the register code abstraction. |
27 class InstructionTester : public HandleAndZoneScope { | 28 class InstructionTester : public HandleAndZoneScope { |
28 public: // We're all friends here. | 29 public: // We're all friends here. |
29 InstructionTester() | 30 InstructionTester() |
30 : graph(zone()), | 31 : graph(zone()), |
31 schedule(zone()), | 32 schedule(zone()), |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 CHECK(inputs[z].Equals(*m->InputAt(z))); | 316 CHECK(inputs[z].Equals(*m->InputAt(z))); |
316 } | 317 } |
317 | 318 |
318 for (size_t z = 0; z < k; z++) { | 319 for (size_t z = 0; z < k; z++) { |
319 CHECK(temps[z].Equals(*m->TempAt(z))); | 320 CHECK(temps[z].Equals(*m->TempAt(z))); |
320 } | 321 } |
321 } | 322 } |
322 } | 323 } |
323 } | 324 } |
324 } | 325 } |
| 326 |
| 327 } // namespace compiler |
| 328 } // namespace internal |
| 329 } // namespace v8 |
OLD | NEW |