Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(994)

Unified Diff: src/stub-cache.h

Issue 111613003: Load the global proxy from the context of the target function. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: hydrogen Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/stub-cache.h
diff --git a/src/stub-cache.h b/src/stub-cache.h
index ebf0bd3c917b5e06ba80f0a4bedb5bd1703def23..07243f77e4aa0f69323b697f168c4b26b562465c 100644
--- a/src/stub-cache.h
+++ b/src/stub-cache.h
@@ -912,7 +912,11 @@ class CallStubCompiler: public StubCompiler {
// Patch the global proxy over the global object if the global object is the
// receiver.
- void PatchGlobalProxy(Handle<Object> object);
+ static void FetchGlobalProxy(MacroAssembler* masm,
+ Register function,
+ Register target);
+ void PatchGlobalProxy(Handle<Object> object, Register function);
+ void PatchGlobalProxy(Handle<Object> object, Handle<JSFunction> function);
// Returns the register containing the holder of |name|.
Register HandlerFrontendHeader(Handle<Object> object,

Powered by Google App Engine
This is Rietveld 408576698