diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-04-29 13:39:11 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-04-29 13:39:11 +0200 |
commit | 66aa6b595c47231958a855e4b166f5d55df1184d (patch) | |
tree | 6be9ba956bd1651cf23d35eff2ae51058d65d813 /js/src/wasm | |
parent | 927868e8b93f508fe89ee82f618f4a1761366f70 (diff) | |
download | UXP-66aa6b595c47231958a855e4b166f5d55df1184d.tar UXP-66aa6b595c47231958a855e4b166f5d55df1184d.tar.gz UXP-66aa6b595c47231958a855e4b166f5d55df1184d.tar.lz UXP-66aa6b595c47231958a855e4b166f5d55df1184d.tar.xz UXP-66aa6b595c47231958a855e4b166f5d55df1184d.zip |
Bug 1411415.
Diffstat (limited to 'js/src/wasm')
-rw-r--r-- | js/src/wasm/AsmJS.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/src/wasm/AsmJS.cpp b/js/src/wasm/AsmJS.cpp index b4f41c3d5..7fade24fb 100644 --- a/js/src/wasm/AsmJS.cpp +++ b/js/src/wasm/AsmJS.cpp @@ -857,7 +857,7 @@ class NumLit private: Which which_; union { - Value scalar_; + JS::UninitializedValue scalar_; SimdConstant simd_; } u; @@ -880,7 +880,7 @@ class NumLit int32_t toInt32() const { MOZ_ASSERT(which_ == Fixnum || which_ == NegativeInt || which_ == BigUnsigned); - return u.scalar_.toInt32(); + return u.scalar_.asValueRef().toInt32(); } uint32_t toUint32() const { @@ -889,17 +889,17 @@ class NumLit RawF64 toDouble() const { MOZ_ASSERT(which_ == Double); - return RawF64(u.scalar_.toDouble()); + return RawF64(u.scalar_.asValueRef().toDouble()); } RawF32 toFloat() const { MOZ_ASSERT(which_ == Float); - return RawF32(float(u.scalar_.toDouble())); + return RawF32(float(u.scalar_.asValueRef().toDouble())); } Value scalarValue() const { MOZ_ASSERT(which_ != OutOfRangeInt); - return u.scalar_; + return u.scalar_.asValueRef(); } bool isSimd() const |