aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubin Xu <rubinxu@google.com>2016-02-03 15:20:28 +0000
committerRubin Xu <rubinxu@google.com>2016-02-03 15:20:28 +0000
commit3be4787cb29a331821b788e04e7589e1d29a8d15 (patch)
treece81fec6a9dc1e1b6ac046d81f29f28c7f1861ab
parent799a287f50bf8306c0001f34f6f73d7e5598d6a7 (diff)
downloadv8-3be4787cb29a331821b788e04e7589e1d29a8d15.tar.gz
Align SnapshotData to word boundary.
Point fix for a misaligned memory access crash in pacprocessor. Ideally we might want to pull in a more recent v8 snapshot here, but external/v8 is currently only used by external/chromium-libpac to parse Javascript-based PAC files and the latter no longer has a owner. So let's just fix this particular crash for now and keep the rest untouched. Bug: 26150045 Change-Id: I28e4c8fede9b97009049857aa253da78f68a6368
-rw-r--r--src/mksnapshot.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mksnapshot.cc b/src/mksnapshot.cc
index 988e7da7..e5abfb25 100644
--- a/src/mksnapshot.cc
+++ b/src/mksnapshot.cc
@@ -81,7 +81,7 @@ class SnapshotWriter {
}
void WriteData(const i::Vector<const i::byte>& blob) const {
- fprintf(fp_, "static const byte blob_data[] = {\n");
+ fprintf(fp_, "static const byte blob_data[] __attribute__((aligned(8))) = {\n");
WriteSnapshotData(blob);
fprintf(fp_, "};\n");
fprintf(fp_, "static const int blob_size = %d;\n", blob.length());