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

Unified Diff: src/utils.cc

Issue 1995453002: [stubs] Extend HasProperty stub with dictionary-mode and double-elements objects support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Drive-by fix: replace Load()s with LoadObjectField()s 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/compiler/function-tester.h » ('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 c46028f05946f1268c182bf8573d64794e6d2e25..16b5b7c61fa41f64b7368956e029eb970a34b293 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -430,11 +430,8 @@ void init_memcopy_functions(Isolate* isolate) {
bool DoubleToBoolean(double d) {
// NaN, +0, and -0 should return the false object
-#if V8_TARGET_LITTLE_ENDIAN
- union IeeeDoubleLittleEndianArchType u;
-#else
- union IeeeDoubleBigEndianArchType u;
-#endif
+ IeeeDoubleArchType u;
+
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/compiler/function-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698