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

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

Issue 420033003: Fix 64-bit VS2010 build (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 CHECK_EQ(op2, cur->destination()); 293 CHECK_EQ(op2, cur->destination());
294 } 294 }
295 } 295 }
296 296
297 297
298 TEST(InstructionOperands) { 298 TEST(InstructionOperands) {
299 Zone zone(CcTest::InitIsolateOnce()); 299 Zone zone(CcTest::InitIsolateOnce());
300 300
301 { 301 {
302 TestInstr* i = TestInstr::New(&zone, 101); 302 TestInstr* i = TestInstr::New(&zone, 101);
303 CHECK_EQ(0, i->OutputCount()); 303 CHECK_EQ(0, static_cast<int>(i->OutputCount()));
304 CHECK_EQ(0, i->InputCount()); 304 CHECK_EQ(0, static_cast<int>(i->InputCount()));
305 CHECK_EQ(0, i->TempCount()); 305 CHECK_EQ(0, static_cast<int>(i->TempCount()));
306 } 306 }
307 307
308 InstructionOperand* outputs[] = { 308 InstructionOperand* outputs[] = {
309 new (&zone) UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER), 309 new (&zone) UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER),
310 new (&zone) UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER), 310 new (&zone) UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER),
311 new (&zone) UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER), 311 new (&zone) UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER),
312 new (&zone) UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER)}; 312 new (&zone) UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER)};
313 313
314 InstructionOperand* inputs[] = { 314 InstructionOperand* inputs[] = {
315 new (&zone) UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER), 315 new (&zone) UnallocatedOperand(UnallocatedOperand::MUST_HAVE_REGISTER),
(...skipping 24 matching lines...) Expand all
340 CHECK_EQ(inputs[z], m->InputAt(z)); 340 CHECK_EQ(inputs[z], m->InputAt(z));
341 } 341 }
342 342
343 for (size_t z = 0; z < k; z++) { 343 for (size_t z = 0; z < k; z++) {
344 CHECK_EQ(temps[z], m->TempAt(z)); 344 CHECK_EQ(temps[z], m->TempAt(z));
345 } 345 }
346 } 346 }
347 } 347 }
348 } 348 }
349 } 349 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-graph-reducer.cc ('k') | test/cctest/compiler/test-instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698