Bug 618485 - Add jsuword view to jsval_layout on 64-bit big-endian. r=luke
authorLandry Breuil <landry@openbsd.org>
Thu, 25 Apr 2013 16:18:03 -0700
changeset 130005 da1921e38c6cc9be778b49101ed3f1e67ec39285
parent 130004 7c536499e157ecfecdf82a0d4f1a922f4539883c
child 130006 b51eaa301a4a4e12cee631e5c4220d8a8fa88a03
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersluke
bugs618485
milestone23.0a1
Bug 618485 - Add jsuword view to jsval_layout on 64-bit big-endian. r=luke
js/public/Value.h
--- a/js/public/Value.h
+++ b/js/public/Value.h
@@ -316,16 +316,17 @@ typedef union jsval_layout
         uint64_t           payload47 : 47;
     } debugView;
     struct {
         uint32_t           padding;
         union {
             int32_t        i32;
             uint32_t       u32;
             JSWhyMagic     why;
+            jsuword        word;
         } payload;
     } s;
     double asDouble;
     void *asPtr;
     size_t asWord;
     uintptr_t asUIntPtr;
 } JSVAL_ALIGNMENT jsval_layout;
 # endif /* JS_BITS_PER_WORD */