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

Unified Diff: src/contexts.h

Issue 1218783005: Support for global var shortcuts in script contexts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 months 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
« no previous file with comments | « no previous file | src/contexts.cc » ('j') | src/globals.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/contexts.h
diff --git a/src/contexts.h b/src/contexts.h
index 78d4bc4255c5194d374fcf1c38cca902978b8a14..5c07f629d3853454558041a49e82ba299385b57c 100644
--- a/src/contexts.h
+++ b/src/contexts.h
@@ -225,6 +225,7 @@ class ScriptContextTable : public FixedArray {
int context_index;
int slot_index;
VariableMode mode;
+ ContextSlotKindFlag slot_kind;
InitializationFlag init_flag;
MaybeAssignedFlag maybe_assigned_flag;
};
@@ -556,6 +557,9 @@ class Context: public FixedArray {
that->global_object()->native_context()->security_token();
}
+ // Invalidates global variable bindings in given script context.
+ void InvalidateGlobalSlots();
Toon Verwaest 2015/07/01 09:28:55 InitializeGlobalSlots
Igor Sheludko 2015/07/02 16:50:13 Done.
+
// A native context holds a list of all functions with optimized code.
void AddOptimizedFunction(JSFunction* function);
void RemoveOptimizedFunction(JSFunction* function);
« no previous file with comments | « no previous file | src/contexts.cc » ('j') | src/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698