From baac94254f165fe4441754241db95849864c6a21 Mon Sep 17 00:00:00 2001 From: olehougaard Date: Mon, 26 Jan 2009 13:21:49 +0000 Subject: [PATCH] Reintroduced a fix for an alignment issue on ARM. I had reverted it by mistake. This fixes the serialization test suite on ARM. Review URL: http://codereview.chromium.org/18751 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1152 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/serialize.h | 4 ++-- test/cctest/cctest.status | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/serialize.h b/src/serialize.h index c16261592..18d36f38b 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -225,8 +225,8 @@ class SnapshotReader { } int GetInt() { - int result = *reinterpret_cast(str_); - str_ += sizeof(result); + int result; + GetBytes(reinterpret_cast
(&result), sizeof(result)); return result; } diff --git a/test/cctest/cctest.status b/test/cctest/cctest.status index 66be6df1a..2be0fd012 100644 --- a/test/cctest/cctest.status +++ b/test/cctest/cctest.status @@ -33,10 +33,6 @@ test-debug/ThreadedDebugging: PASS || FAIL [ $arch == arm ] test-debug: SKIP -test-serialize/Deserialize: SKIP -test-serialize/DeserializeAndRunScript: SKIP -test-serialize/DeserializeNatives: SKIP -test-serialize/DeserializeExtensions: SKIP # BUG(113): Test seems flaky on ARM. test-spaces/LargeObjectSpace: PASS || FAIL -- 2.34.1