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

Side by Side Diff: test/cctest/compiler/codegen-tester.cc

Issue 1282763002: [turbofan] Drop V8_TURBOFAN_BACKEND and V8_TURBOFAN_TARGET defines. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/globals.h ('k') | test/cctest/compiler/function-tester.h » ('j') | 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 6
7 #include "test/cctest/cctest.h" 7 #include "test/cctest/cctest.h"
8 #include "test/cctest/compiler/codegen-tester.h" 8 #include "test/cctest/compiler/codegen-tester.h"
9 #include "test/cctest/compiler/value-helper.h" 9 #include "test/cctest/compiler/value-helper.h"
10 10
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 RawMachineAssemblerTester<int32_t>* m) { 361 RawMachineAssemblerTester<int32_t>* m) {
362 FOR_UINT32_INPUTS(i) { 362 FOR_UINT32_INPUTS(i) {
363 input_b = *i; 363 input_b = *i;
364 int32_t expect = gen->expected(input_a, input_b); 364 int32_t expect = gen->expected(input_a, input_b);
365 if (false) printf(" cmp(a=%d, b=%d) ?== %d\n", input_a, input_b, expect); 365 if (false) printf(" cmp(a=%d, b=%d) ?== %d\n", input_a, input_b, expect);
366 CHECK_EQ(expect, m->Call(input_a, input_b)); 366 CHECK_EQ(expect, m->Call(input_a, input_b));
367 } 367 }
368 } 368 }
369 369
370 370
371 #if V8_TURBOFAN_TARGET
372
373 TEST(ParametersEqual) { 371 TEST(ParametersEqual) {
374 RawMachineAssemblerTester<int32_t> m(kMachInt32, kMachInt32); 372 RawMachineAssemblerTester<int32_t> m(kMachInt32, kMachInt32);
375 Node* p1 = m.Parameter(1); 373 Node* p1 = m.Parameter(1);
376 CHECK(p1); 374 CHECK(p1);
377 Node* p0 = m.Parameter(0); 375 Node* p0 = m.Parameter(0);
378 CHECK(p0); 376 CHECK(p0);
379 CHECK_EQ(p0, m.Parameter(0)); 377 CHECK_EQ(p0, m.Parameter(0));
380 CHECK_EQ(p1, m.Parameter(1)); 378 CHECK_EQ(p1, m.Parameter(1));
381 } 379 }
382 380
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 } 563 }
566 564
567 { 565 {
568 RawMachineAssemblerTester<int32_t> m; 566 RawMachineAssemblerTester<int32_t> m;
569 Float64BinopTester bt(&m); 567 Float64BinopTester bt(&m);
570 bt.AddReturn(bt.param1); 568 bt.AddReturn(bt.param1);
571 569
572 FOR_FLOAT64_INPUTS(i) { CheckDoubleEq(*i, bt.call(-11.25, *i)); } 570 FOR_FLOAT64_INPUTS(i) { CheckDoubleEq(*i, bt.call(-11.25, *i)); }
573 } 571 }
574 } 572 }
575
576 #endif // V8_TURBOFAN_TARGET
OLDNEW
« no previous file with comments | « src/globals.h ('k') | test/cctest/compiler/function-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698