Index: src/ic/ppc/handler-compiler-ppc.cc |
diff --git a/src/ic/ppc/handler-compiler-ppc.cc b/src/ic/ppc/handler-compiler-ppc.cc |
index 4b7d6c05fba5c20282f73dcb0f6a333514ef5182..e666c91d027fca036ce2de38f2fb23f04a4aac1d 100644 |
--- a/src/ic/ppc/handler-compiler-ppc.cc |
+++ b/src/ic/ppc/handler-compiler-ppc.cc |
@@ -293,6 +293,13 @@ void PropertyHandlerCompiler::GenerateApiAccessorCall( |
__ LoadP(data, FieldMemOperand(data, CallHandlerInfo::kDataOffset)); |
} |
+ if (api_call_info->fast_handler()->IsCode()) { |
+ // Just tail call into the fast handler if present. |
+ __ 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()); |
ApiFunction fun(function_address); |