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

Side by Side Diff: test/cctest/compiler/test-changes-lowering.cc

Issue 888613002: Initial switch to Chromium-style CHECK_* and DCHECK_* macros. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: CHECK_NULL/NOT_NULL is back. 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
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 <limits> 5 #include <limits>
6 6
7 #include "src/compiler/change-lowering.h" 7 #include "src/compiler/change-lowering.h"
8 #include "src/compiler/control-builders.h" 8 #include "src/compiler/control-builders.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 235 }
236 } 236 }
237 } 237 }
238 238
239 if (Pipeline::SupportedTarget()) { 239 if (Pipeline::SupportedTarget()) {
240 FOR_FLOAT64_INPUTS(i) { 240 FOR_FLOAT64_INPUTS(i) {
241 double input = *i; 241 double input = *i;
242 { 242 {
243 Handle<Object> number = t.factory()->NewNumber(input); 243 Handle<Object> number = t.factory()->NewNumber(input);
244 t.Call(*number); 244 t.Call(*number);
245 CHECK_EQ(input, result); 245 CheckDoubleEq(input, result);
246 } 246 }
247 247
248 { 248 {
249 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input); 249 Handle<HeapNumber> number = t.factory()->NewHeapNumber(input);
250 t.Call(*number); 250 t.Call(*number);
251 CHECK_EQ(input, result); 251 CheckDoubleEq(input, result);
252 } 252 }
253 } 253 }
254 } 254 }
255 } 255 }
256 256
257 257
258 TEST(RunChangeBoolToBit) { 258 TEST(RunChangeBoolToBit) {
259 ChangesLoweringTester<int32_t> t(kMachAnyTagged); 259 ChangesLoweringTester<int32_t> t(kMachAnyTagged);
260 t.BuildAndLower(t.simplified()->ChangeBoolToBit()); 260 t.BuildAndLower(t.simplified()->ChangeBoolToBit());
261 261
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 389
390 input = *i; 390 input = *i;
391 Object* result = t.CallWithPotentialGC<Object>(); 391 Object* result = t.CallWithPotentialGC<Object>();
392 t.CheckNumber(input, result); 392 t.CheckNumber(input, result);
393 } 393 }
394 } 394 }
395 } 395 }
396 } 396 }
397 397
398 #endif // V8_TURBOFAN_BACKEND 398 #endif // V8_TURBOFAN_BACKEND
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-basic-block-profiler.cc ('k') | test/cctest/compiler/test-control-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698