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