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

Unified Diff: src/utils.cc

Issue 2028333002: Revert of Extend HasProperty stub with dictionary-mode and double-elements objects support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects-printer.cc ('k') | test/cctest/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.cc
diff --git a/src/utils.cc b/src/utils.cc
index 16b5b7c61fa41f64b7368956e029eb970a34b293..c46028f05946f1268c182bf8573d64794e6d2e25 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -430,8 +430,11 @@
bool DoubleToBoolean(double d) {
// NaN, +0, and -0 should return the false object
- IeeeDoubleArchType u;
-
+#if V8_TARGET_LITTLE_ENDIAN
+ union IeeeDoubleLittleEndianArchType u;
+#else
+ union IeeeDoubleBigEndianArchType u;
+#endif
u.d = d;
if (u.bits.exp == 2047) {
// Detect NaN for IEEE double precision floating point.
« no previous file with comments | « src/objects-printer.cc ('k') | test/cctest/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698