Commit 4e946e3e authored by dusan.milosavljevic's avatar dusan.milosavljevic Committed by Commit bot

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

TEST=
BUG=

Review URL: https://codereview.chromium.org/945813002

Cr-Commit-Position: refs/heads/master@{#26784}
parent 88c4f52c
...@@ -696,9 +696,15 @@ enum ScopeType { ...@@ -696,9 +696,15 @@ enum ScopeType {
ARROW_SCOPE // The top-level scope for an arrow function literal. 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 kHoleNanUpper32 = 0xFFF7FFFF;
const uint32_t kHoleNanLower32 = 0xFFF7FFFF; const uint32_t kHoleNanLower32 = 0xFFF7FFFF;
#endif
const uint64_t kHoleNanInt64 = const uint64_t kHoleNanInt64 =
(static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment