commit | f87795d8d096dfbd51060aa031261ad060d13b8f | [log] [tgz] |
---|---|---|
author | oliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Wed Mar 02 01:23:00 2011 +0000 |
committer | oliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Wed Mar 02 01:23:00 2011 +0000 |
tree | 9f4f03604cd1e1d81277f1f71a043e4f5739b524 | |
parent | 5c7ddd1d0ca572eb8c9105999ba2784b70125f33 [diff] [blame] |
2011-03-01 Oliver Hunt <oliver@apple.com> Reviewed by Joseph Pecoraro. Misaligned memory access in CloneDeserializer on all ARM arch. https://bugs.webkit.org/show_bug.cgi?id=48742 Add a CPU class for architectures that need aligned addresses for memory access. * wtf/Platform.h: 2011-03-01 Oliver Hunt <oliver@apple.com> Reviewed by Joseph Pecoraro. Misaligned memory access in CloneDeserializer on all ARM arch. https://bugs.webkit.org/show_bug.cgi?id=48742 Push platforms that need aligned memory access down the endian independent serialization and deserialization paths. * bindings/js/SerializedScriptValue.cpp: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@80070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebCore/bindings/js/SerializedScriptValue.cpp b/Source/WebCore/bindings/js/SerializedScriptValue.cpp index 300d5b0..41ad198 100644 --- a/Source/WebCore/bindings/js/SerializedScriptValue.cpp +++ b/Source/WebCore/bindings/js/SerializedScriptValue.cpp
@@ -53,7 +53,7 @@ using namespace JSC; using namespace std; -#if CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN) +#if CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN) || CPU(NEEDS_ALIGNED_ACCESS) #define ASSUME_LITTLE_ENDIAN 0 #else #define ASSUME_LITTLE_ENDIAN 1