Bug 989204 followup - Fix Windows build. r=red
authorJan de Mooij <jdemooij@mozilla.com>
Thu, 03 Apr 2014 12:08:31 +0200
changeset 176953 7cdf043c7666583837a64d82e768bf85b8ac6fe1
parent 176952 9517fe15e2c20adc58a200394f8ad6aa8945fdf5
child 176954 40e46baac77eefafe06e1287281e3a8ae7015755
push id26538
push userryanvm@gmail.com
push dateThu, 03 Apr 2014 19:23:59 +0000
treeherdermozilla-central@6c924a018540 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersred
bugs989204
milestone31.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 989204 followup - Fix Windows build. r=red
js/src/jsfun.h
--- a/js/src/jsfun.h
+++ b/js/src/jsfun.h
@@ -534,17 +534,17 @@ bool IsConstructor(const Value &v);
  * storage is required (no malloc'ed reserved slots).
  */
 class FunctionExtended : public JSFunction
 {
   public:
     static const unsigned NUM_EXTENDED_SLOTS = 2;
 
     static inline size_t offsetOfArrowThisSlot() {
-        return offsetof(FunctionExtended, extendedSlots) + 0 * sizeof(extendedSlots[0]);
+        return offsetof(FunctionExtended, extendedSlots) + 0 * sizeof(HeapValue);
     }
 
   private:
     friend class JSFunction;
 
     /* Reserved slots available for storage by particular native functions. */
     HeapValue extendedSlots[NUM_EXTENDED_SLOTS];
 };