Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(679)

Side by Side Diff: test/cctest/compiler/test-instruction.cc

Issue 884503002: store InstructionOperands directly in Instruction (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/instruction.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698