From 84fb07ce1b9fb9c44ff5d50b195654d11ccf8763 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 14 Oct 2014 16:33:13 +0200 Subject: Fix LLInt vector offsets on Windows 64 Derived classes on Windows x64 are 64bit aligned placing the m_size property of Vector slightly differently than on other platforms. Change-Id: I186de5ea200abfbdd3bdf7502f3f427cb6890f3c Reviewed-by: Jocelyn Turcotte --- Source/JavaScriptCore/llint/LLIntData.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/JavaScriptCore/llint/LLIntData.cpp') diff --git a/Source/JavaScriptCore/llint/LLIntData.cpp b/Source/JavaScriptCore/llint/LLIntData.cpp index f91da9c0a..f1e367510 100644 --- a/Source/JavaScriptCore/llint/LLIntData.cpp +++ b/Source/JavaScriptCore/llint/LLIntData.cpp @@ -116,7 +116,11 @@ void Data::performAssertions(VM& vm) #if !ASSERT_DISABLED Vector testVector; testVector.resize(42); +#if USE(JSVALUE64) && OS(WINDOWS) + ASSERT(bitwise_cast(&testVector)[4] == 42); +#else ASSERT(bitwise_cast(&testVector)[sizeof(void*)/sizeof(uint32_t) + 1] == 42); +#endif ASSERT(bitwise_cast(&testVector)[0] == testVector.begin()); #endif -- cgit v1.2.1