From 009c1c2e6cdbeb285230090017691499873266c3 Mon Sep 17 00:00:00 2001 From: Andreas Holzammer Date: Tue, 12 Feb 2013 12:49:11 +0100 Subject: [V8][WINCE]Disable inline cache optimization Disable inline cache optimization because calling convention looks different. Change-Id: I719ff4860164ec6919cc5501d71c4a2b6fab110c Reviewed-by: Johannes Oikarinen Reviewed-by: Janne Anttila Reviewed-by: Frederik Gladhorn Reviewed-by: Peter Varga --- src/3rdparty/v8/src/ic.cc | 4 ++++ src/3rdparty/v8/src/stub-cache.cc | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/3rdparty/v8/src/ic.cc b/src/3rdparty/v8/src/ic.cc index 354ed64..fe31ef1 100644 --- a/src/3rdparty/v8/src/ic.cc +++ b/src/3rdparty/v8/src/ic.cc @@ -989,6 +989,10 @@ void LoadIC::UpdateCaches(LookupResult* lookup, } break; case CALLBACKS: { +#ifdef _WIN32_WCE + // Disable optimization for wince as the calling convention looks different. + return; +#endif Handle callback(lookup->GetCallbackObject()); if (callback->IsAccessorInfo()) { Handle info = Handle::cast(callback); diff --git a/src/3rdparty/v8/src/stub-cache.cc b/src/3rdparty/v8/src/stub-cache.cc index 3885462..3796d2d 100644 --- a/src/3rdparty/v8/src/stub-cache.cc +++ b/src/3rdparty/v8/src/stub-cache.cc @@ -1477,6 +1477,7 @@ Handle CallStubCompiler::CompileCustomCall( #undef CALL_GENERATOR_CASE } CallOptimization optimization(function); +#ifndef _WIN32_WCE ASSERT(optimization.is_simple_api_call()); return CompileFastApiCall(optimization, object, @@ -1484,6 +1485,10 @@ Handle CallStubCompiler::CompileCustomCall( cell, function, fname); +#else + // Disable optimization for wince as the calling convention looks different. + return Handle::null(); +#endif // _WIN32_WCE } -- cgit v1.2.1