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

Side by Side Diff: test/cctest/test-assembler-x87.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 | « test/cctest/test-assembler-ia32.cc ('k') | test/cctest/test-checks.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); 222 desc, Code::ComputeFlags(Code::STUB), Handle<Code>());
223 #ifdef OBJECT_PRINT 223 #ifdef OBJECT_PRINT
224 OFStream os(stdout); 224 OFStream os(stdout);
225 code->Print(os); 225 code->Print(os);
226 #endif 226 #endif
227 227
228 F7 f = FUNCTION_CAST<F7>(code->entry()); 228 F7 f = FUNCTION_CAST<F7>(code->entry());
229 CHECK_EQ(kLess, f(1.1, 2.2)); 229 CHECK_EQ(kLess, f(1.1, 2.2));
230 CHECK_EQ(kEqual, f(2.2, 2.2)); 230 CHECK_EQ(kEqual, f(2.2, 2.2));
231 CHECK_EQ(kGreater, f(3.3, 2.2)); 231 CHECK_EQ(kGreater, f(3.3, 2.2));
232 CHECK_EQ(kNaN, f(v8::base::OS::nan_value(), 1.1)); 232 CHECK_EQ(kNaN, f(std::numeric_limits<double>::quiet_NaN(), 1.1));
233 } 233 }
234 234
235 235
236 TEST(AssemblerIa3210) { 236 TEST(AssemblerIa3210) {
237 // Test chaining of label usages within instructions (issue 1644). 237 // Test chaining of label usages within instructions (issue 1644).
238 CcTest::InitializeVM(); 238 CcTest::InitializeVM();
239 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); 239 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate());
240 HandleScope scope(isolate); 240 HandleScope scope(isolate);
241 Assembler assm(isolate, NULL, 0); 241 Assembler assm(isolate, NULL, 0);
242 242
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); 306 desc, Code::ComputeFlags(Code::STUB), Handle<Code>());
307 CHECK(code->IsCode()); 307 CHECK(code->IsCode());
308 308
309 F0 f = FUNCTION_CAST<F0>(code->entry()); 309 F0 f = FUNCTION_CAST<F0>(code->entry());
310 int res = f(); 310 int res = f();
311 CHECK_EQ(42, res); 311 CHECK_EQ(42, res);
312 } 312 }
313 313
314 314
315 #undef __ 315 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-assembler-ia32.cc ('k') | test/cctest/test-checks.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698