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

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: don't embed global object or receiver in 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..0cf9e8fae00ed89be9f0db23eeab0695b8c80a91 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 target,
+ Register function);
+ 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,
« src/ia32/code-stubs-ia32.cc ('K') | « src/runtime.js ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698