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