Bug 885182 - Align IonScript member data on 8-byte boundaries on 64-bit targets, to avoid misaligned memory references. r=mjrosenb
authorDan Gohman <sunfish@google.com>
Thu, 20 Jun 2013 11:17:36 -0700
changeset 147348 cc2e2aff62064a3220ca377fc279f6ce237ede1a
parent 147347 0b124ffdeaf8d925afd2bec260ba5e754a3e058f
child 147349 d265226f218c4882a58647b92a8cc3f58c9155e8
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmjrosenb
bugs885182
milestone24.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 885182 - Align IonScript member data on 8-byte boundaries on 64-bit targets, to avoid misaligned memory references. r=mjrosenb
js/src/ion/Ion.cpp
--- a/js/src/ion/Ion.cpp
+++ b/js/src/ion/Ion.cpp
@@ -569,17 +569,17 @@ IonScript::IonScript()
     callTargetEntries_(0),
     refcount_(0),
     recompileInfo_(),
     osrPcMismatchCounter_(0),
     dependentAsmJSModules(NULL)
 {
 }
 
-static const int DataAlignment = 4;
+static const int DataAlignment = sizeof(void *);
 
 IonScript *
 IonScript::New(JSContext *cx, uint32_t frameSlots, uint32_t frameSize, size_t snapshotsSize,
                size_t bailoutEntries, size_t constants, size_t safepointIndices,
                size_t osiIndices, size_t cacheEntries, size_t runtimeSize,
                size_t safepointsSize, size_t scriptEntries,
                size_t callTargetEntries)
 {