Index: src/stub-cache.cc |
diff --git a/src/stub-cache.cc b/src/stub-cache.cc |
index fc0538ab5ba106cf5c88be95a8cca071b893db86..4b55d2e196df9c8443b5b15d1a24b7be4daa21d0 100644 |
--- a/src/stub-cache.cc |
+++ b/src/stub-cache.cc |
@@ -1291,7 +1291,7 @@ void CallStubCompiler::GenerateJumpFunctionIgnoreReceiver( |
void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, |
Handle<JSFunction> function) { |
- PatchGlobalProxy(object, function); |
+ PatchImplicitReceiver(object); |
GenerateJumpFunctionIgnoreReceiver(function); |
} |
@@ -1299,7 +1299,7 @@ void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, |
void CallStubCompiler::GenerateJumpFunction(Handle<Object> object, |
Register actual_closure, |
Handle<JSFunction> function) { |
- PatchGlobalProxy(object, function); |
+ PatchImplicitReceiver(object); |
ParameterCount expected(function); |
__ InvokeFunction(actual_closure, expected, arguments(), |
JUMP_FUNCTION, NullCallWrapper(), call_kind()); |