Index: src/ic/ia32/handler-compiler-ia32.cc |
diff --git a/src/ic/ia32/handler-compiler-ia32.cc b/src/ic/ia32/handler-compiler-ia32.cc |
index 55df8c57192c9f142be905c08318ffb0cd40944d..ecb4272e47aa1a75a51bfdc095f00309cdf184db 100644 |
--- a/src/ic/ia32/handler-compiler-ia32.cc |
+++ b/src/ic/ia32/handler-compiler-ia32.cc |
@@ -206,6 +206,12 @@ void PropertyHandlerCompiler::GenerateApiAccessorCall( |
__ mov(data, FieldOperand(data, CallHandlerInfo::kDataOffset)); |
} |
+ if (api_call_info->fast_handler()->IsCode()) { |
+ // Just tail call into the code. |
+ __ Jump(handle(Code::cast(api_call_info->fast_handler())), |
+ RelocInfo::CODE_TARGET); |
+ return; |
+ } |
// Put api_function_address in place. |
Address function_address = v8::ToCData<Address>(api_call_info->callback()); |
__ mov(api_function_address, Immediate(function_address)); |