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

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

Issue 864803002: Remove deprecated v8::base::OS::nan_value(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix invalid test expectation. Created 5 years, 11 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/types.cc ('k') | test/cctest/compiler/test-branch-combine.cc » ('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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 CHECK_EQ(false, wUint32LessThanOrEqual.Int32Compare(85539, 85537)); 134 CHECK_EQ(false, wUint32LessThanOrEqual.Int32Compare(85539, 85537));
135 CHECK_EQ(false, wUint32LessThanOrEqual.Int32Compare(-130, -170)); 135 CHECK_EQ(false, wUint32LessThanOrEqual.Int32Compare(-130, -170));
136 CHECK_EQ(false, wUint32LessThanOrEqual.Int32Compare(0xffffffff, 0xfffffffe)); 136 CHECK_EQ(false, wUint32LessThanOrEqual.Int32Compare(0xffffffff, 0xfffffffe));
137 CHECK_EQ(false, wUint32LessThanOrEqual.Int32Compare(-2997, 0)); 137 CHECK_EQ(false, wUint32LessThanOrEqual.Int32Compare(-2997, 0));
138 138
139 CompareWrapper wFloat64Equal(IrOpcode::kFloat64Equal); 139 CompareWrapper wFloat64Equal(IrOpcode::kFloat64Equal);
140 CompareWrapper wFloat64LessThan(IrOpcode::kFloat64LessThan); 140 CompareWrapper wFloat64LessThan(IrOpcode::kFloat64LessThan);
141 CompareWrapper wFloat64LessThanOrEqual(IrOpcode::kFloat64LessThanOrEqual); 141 CompareWrapper wFloat64LessThanOrEqual(IrOpcode::kFloat64LessThanOrEqual);
142 142
143 // Check NaN handling. 143 // Check NaN handling.
144 double nan = v8::base::OS::nan_value(); 144 double nan = std::numeric_limits<double>::quiet_NaN();
145 double inf = V8_INFINITY; 145 double inf = V8_INFINITY;
146 CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, 0.0)); 146 CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, 0.0));
147 CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, 1.0)); 147 CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, 1.0));
148 CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, inf)); 148 CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, inf));
149 CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, -inf)); 149 CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, -inf));
150 CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, nan)); 150 CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, nan));
151 151
152 CHECK_EQ(false, wFloat64Equal.Float64Compare(0.0, nan)); 152 CHECK_EQ(false, wFloat64Equal.Float64Compare(0.0, nan));
153 CHECK_EQ(false, wFloat64Equal.Float64Compare(1.0, nan)); 153 CHECK_EQ(false, wFloat64Equal.Float64Compare(1.0, nan));
154 CHECK_EQ(false, wFloat64Equal.Float64Compare(inf, nan)); 154 CHECK_EQ(false, wFloat64Equal.Float64Compare(inf, nan));
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 { 567 {
568 RawMachineAssemblerTester<int32_t> m; 568 RawMachineAssemblerTester<int32_t> m;
569 Float64BinopTester bt(&m); 569 Float64BinopTester bt(&m);
570 bt.AddReturn(bt.param1); 570 bt.AddReturn(bt.param1);
571 571
572 FOR_FLOAT64_INPUTS(i) { CHECK_EQ(*i, bt.call(-11.25, *i)); } 572 FOR_FLOAT64_INPUTS(i) { CHECK_EQ(*i, bt.call(-11.25, *i)); }
573 } 573 }
574 } 574 }
575 575
576 #endif // V8_TURBOFAN_TARGET 576 #endif // V8_TURBOFAN_TARGET
OLDNEW
« no previous file with comments | « src/types.cc ('k') | test/cctest/compiler/test-branch-combine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698