Index: src/stub-cache.h |
diff --git a/src/stub-cache.h b/src/stub-cache.h |
index 7db6eb41d473d3e9e618e63ed919a0b6000a963c..68187ffae0214ca5d1d10b0f74972380ad3f29f9 100644 |
--- a/src/stub-cache.h |
+++ b/src/stub-cache.h |
@@ -349,6 +349,15 @@ class StubCompiler BASE_EMBEDDED { |
int index, |
Register prototype); |
+ // Generates prototype loading code that uses the objects from the |
+ // context we were in when this function was called. This ties the |
+ // generated code to a particular context and so must not be used in |
+ // cases where the generated code is not allowed to have references |
+ // to objects from a context. |
+ static void GenerateDirectLoadGlobalFunctionPrototype(MacroAssembler* masm, |
+ int index, |
+ Register prototype); |
+ |
static void GenerateFastPropertyLoad(MacroAssembler* masm, |
Register dst, Register src, |
JSObject* holder, int index); |