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

Unified Diff: src/contexts.h

Issue 1834633003: [debugger] allow debug-evaluate to change stack and context values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comments Created 4 years, 9 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 | « src/ast/scopes.cc ('k') | src/contexts.cc » ('j') | no next file with comments »
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 5ebec0ce64548ba67d0fe7ccfc0a35d73e4bd7eb..048f89837dc7f3e05bd75c78622b1617a342e44d 100644
--- a/src/contexts.h
+++ b/src/contexts.h
@@ -406,6 +406,10 @@ class Context: public FixedArray {
MIN_CONTEXT_SLOTS = GLOBAL_PROXY_INDEX,
// This slot holds the thrown value in catch contexts.
THROWN_OBJECT_INDEX = MIN_CONTEXT_SLOTS,
+
+ // These slots hold values in debug evaluate contexts.
+ WRAPPED_CONTEXT_INDEX = MIN_CONTEXT_SLOTS,
+ WHITE_LIST_INDEX = MIN_CONTEXT_SLOTS + 1
};
void IncrementErrorsThrown();
@@ -458,6 +462,7 @@ class Context: public FixedArray {
inline bool IsFunctionContext();
inline bool IsCatchContext();
inline bool IsWithContext();
+ inline bool IsDebugEvaluateContext();
inline bool IsBlockContext();
inline bool IsModuleContext();
inline bool IsScriptContext();
« no previous file with comments | « src/ast/scopes.cc ('k') | src/contexts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698