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

Side by Side Diff: test/cctest/test-assembler-ia32.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-api.cc ('k') | test/cctest/test-assembler-x87.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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); 347 desc, Code::ComputeFlags(Code::STUB), Handle<Code>());
348 #ifdef OBJECT_PRINT 348 #ifdef OBJECT_PRINT
349 OFStream os(stdout); 349 OFStream os(stdout);
350 code->Print(os); 350 code->Print(os);
351 #endif 351 #endif
352 352
353 F7 f = FUNCTION_CAST<F7>(code->entry()); 353 F7 f = FUNCTION_CAST<F7>(code->entry());
354 CHECK_EQ(kLess, f(1.1, 2.2)); 354 CHECK_EQ(kLess, f(1.1, 2.2));
355 CHECK_EQ(kEqual, f(2.2, 2.2)); 355 CHECK_EQ(kEqual, f(2.2, 2.2));
356 CHECK_EQ(kGreater, f(3.3, 2.2)); 356 CHECK_EQ(kGreater, f(3.3, 2.2));
357 CHECK_EQ(kNaN, f(v8::base::OS::nan_value(), 1.1)); 357 CHECK_EQ(kNaN, f(std::numeric_limits<double>::quiet_NaN(), 1.1));
358 } 358 }
359 359
360 360
361 TEST(AssemblerIa3210) { 361 TEST(AssemblerIa3210) {
362 // Test chaining of label usages within instructions (issue 1644). 362 // Test chaining of label usages within instructions (issue 1644).
363 CcTest::InitializeVM(); 363 CcTest::InitializeVM();
364 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); 364 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate());
365 HandleScope scope(isolate); 365 HandleScope scope(isolate);
366 Assembler assm(isolate, NULL, 0); 366 Assembler assm(isolate, NULL, 0);
367 367
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 desc, Code::ComputeFlags(Code::STUB), Handle<Code>()); 1037 desc, Code::ComputeFlags(Code::STUB), Handle<Code>());
1038 #ifdef OBJECT_PRINT 1038 #ifdef OBJECT_PRINT
1039 OFStream os(stdout); 1039 OFStream os(stdout);
1040 code->Print(os); 1040 code->Print(os);
1041 #endif 1041 #endif
1042 1042
1043 F10 f = FUNCTION_CAST<F10>(code->entry()); 1043 F10 f = FUNCTION_CAST<F10>(code->entry());
1044 CHECK_EQ(0, f(9.26621069e-05f, -2.4607749f, -1.09587872f)); 1044 CHECK_EQ(0, f(9.26621069e-05f, -2.4607749f, -1.09587872f));
1045 } 1045 }
1046 #undef __ 1046 #undef __
OLDNEW
« no previous file with comments | « test/cctest/test-api.cc ('k') | test/cctest/test-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698