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

Side by Side Diff: src/assembler.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/api.cc ('k') | src/base/platform/platform.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 int y_int = static_cast<int>(y); 1456 int y_int = static_cast<int>(y);
1457 if (y == y_int) { 1457 if (y == y_int) {
1458 return std::ldexp(1.0, y_int); 1458 return std::ldexp(1.0, y_int);
1459 } 1459 }
1460 } 1460 }
1461 #endif 1461 #endif
1462 1462
1463 // The checks for special cases can be dropped in ia32 because it has already 1463 // The checks for special cases can be dropped in ia32 because it has already
1464 // been done in generated code before bailing out here. 1464 // been done in generated code before bailing out here.
1465 if (std::isnan(y) || ((x == 1 || x == -1) && std::isinf(y))) { 1465 if (std::isnan(y) || ((x == 1 || x == -1) && std::isinf(y))) {
1466 return base::OS::nan_value(); 1466 return std::numeric_limits<double>::quiet_NaN();
1467 } 1467 }
1468 return std::pow(x, y); 1468 return std::pow(x, y);
1469 } 1469 }
1470 1470
1471 1471
1472 ExternalReference ExternalReference::power_double_double_function( 1472 ExternalReference ExternalReference::power_double_double_function(
1473 Isolate* isolate) { 1473 Isolate* isolate) {
1474 return ExternalReference(Redirect(isolate, 1474 return ExternalReference(Redirect(isolate,
1475 FUNCTION_ADDR(power_double_double), 1475 FUNCTION_ADDR(power_double_double),
1476 BUILTIN_FP_FP_CALL)); 1476 BUILTIN_FP_FP_CALL));
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); 1588 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position);
1589 state_.written_position = state_.current_position; 1589 state_.written_position = state_.current_position;
1590 written = true; 1590 written = true;
1591 } 1591 }
1592 1592
1593 // Return whether something was written. 1593 // Return whether something was written.
1594 return written; 1594 return written;
1595 } 1595 }
1596 1596
1597 } } // namespace v8::internal 1597 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/base/platform/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698