Reviewers: Benedikt Meurer, akos.palfi.imgtec, balazs.kilvady, danno, Jakob, paul.l...,

Message:
PTAL.

Description:
Change bit pattern of hole nan to reflect different sNan encoding on mips HW.

TEST=
BUG=

Please review this at https://codereview.chromium.org/945813002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+7, -1 lines):
  M src/globals.h


Index: src/globals.h
diff --git a/src/globals.h b/src/globals.h
index 32396d89ea3d2415a2e10938d3a83049055b9740..8fd7c0822c73bde9be342c82250b3db55a5c050d 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -696,9 +696,15 @@ enum ScopeType {
   ARROW_SCOPE      // The top-level scope for an arrow function literal.
 };

-
+// The mips architecture prior to revision 5 has inverted encoding for sNaN.
+#if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \
+    (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6))
+const uint32_t kHoleNanUpper32 = 0xFFFF7FFF;
+const uint32_t kHoleNanLower32 = 0xFFFF7FFF;
+#else
 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF;
 const uint32_t kHoleNanLower32 = 0xFFF7FFFF;
+#endif

 const uint64_t kHoleNanInt64 =
     (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32;


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to