| 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 #include "test/cctest/cctest.h" | 6 #include "test/cctest/cctest.h" |
| 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 "src/lithium.h" | |
| 19 | 18 |
| 20 using namespace v8::internal; | 19 using namespace v8::internal; |
| 21 using namespace v8::internal::compiler; | 20 using namespace v8::internal::compiler; |
| 22 | 21 |
| 23 typedef v8::internal::compiler::Instruction TestInstr; | 22 typedef v8::internal::compiler::Instruction TestInstr; |
| 24 typedef v8::internal::compiler::InstructionSequence TestInstrSeq; | 23 typedef v8::internal::compiler::InstructionSequence TestInstrSeq; |
| 25 | 24 |
| 26 // A testing helper for the register code abstraction. | 25 // A testing helper for the register code abstraction. |
| 27 class InstructionTester : public HandleAndZoneScope { | 26 class InstructionTester : public HandleAndZoneScope { |
| 28 public: // We're all friends here. | 27 public: // We're all friends here. |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 CHECK(inputs[z].Equals(*m->InputAt(z))); | 314 CHECK(inputs[z].Equals(*m->InputAt(z))); |
| 316 } | 315 } |
| 317 | 316 |
| 318 for (size_t z = 0; z < k; z++) { | 317 for (size_t z = 0; z < k; z++) { |
| 319 CHECK(temps[z].Equals(*m->TempAt(z))); | 318 CHECK(temps[z].Equals(*m->TempAt(z))); |
| 320 } | 319 } |
| 321 } | 320 } |
| 322 } | 321 } |
| 323 } | 322 } |
| 324 } | 323 } |
| OLD | NEW |