| 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" |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 for (size_t i = 0; i < arraysize(outputs); i++) { | 319 for (size_t i = 0; i < arraysize(outputs); i++) { |
| 320 for (size_t j = 0; j < arraysize(inputs); j++) { | 320 for (size_t j = 0; j < arraysize(inputs); j++) { |
| 321 for (size_t k = 0; k < arraysize(temps); k++) { | 321 for (size_t k = 0; k < arraysize(temps); k++) { |
| 322 TestInstr* m = | 322 TestInstr* m = |
| 323 TestInstr::New(&zone, 101, i, outputs, j, inputs, k, temps); | 323 TestInstr::New(&zone, 101, i, outputs, j, inputs, k, temps); |
| 324 CHECK(i == m->OutputCount()); | 324 CHECK(i == m->OutputCount()); |
| 325 CHECK(j == m->InputCount()); | 325 CHECK(j == m->InputCount()); |
| 326 CHECK(k == m->TempCount()); | 326 CHECK(k == m->TempCount()); |
| 327 | 327 |
| 328 for (size_t z = 0; z < i; z++) { | 328 for (size_t z = 0; z < i; z++) { |
| 329 CHECK_EQ(outputs[z], m->OutputAt(z)); | 329 CHECK(outputs[z]->Equals(m->OutputAt(z))); |
| 330 } | 330 } |
| 331 | 331 |
| 332 for (size_t z = 0; z < j; z++) { | 332 for (size_t z = 0; z < j; z++) { |
| 333 CHECK_EQ(inputs[z], m->InputAt(z)); | 333 CHECK(inputs[z]->Equals(m->InputAt(z))); |
| 334 } | 334 } |
| 335 | 335 |
| 336 for (size_t z = 0; z < k; z++) { | 336 for (size_t z = 0; z < k; z++) { |
| 337 CHECK_EQ(temps[z], m->TempAt(z)); | 337 CHECK(temps[z]->Equals(m->TempAt(z))); |
| 338 } | 338 } |
| 339 } | 339 } |
| 340 } | 340 } |
| 341 } | 341 } |
| 342 } | 342 } |
| OLD | NEW |