Chromium Code Reviews

Unified Diff: src/ast/scopeinfo.cc

Issue 1500933002: [debugger] fix debug-evaluate wrt shadowed context var. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | src/debug/debug-evaluate.cc » ('j') | src/debug/debug-evaluate.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopeinfo.cc
diff --git a/src/ast/scopeinfo.cc b/src/ast/scopeinfo.cc
index 668879fe5129f63140dfee72ca9d64bad05d062f..bc954852643284a29d03737296430eccfd79fdea 100644
--- a/src/ast/scopeinfo.cc
+++ b/src/ast/scopeinfo.cc
@@ -377,6 +377,16 @@ bool ScopeInfo::HasAllocatedReceiver() {
}
+bool ScopeInfo::HasContextAllocatedReceiver() {
+ if (length() > 0) {
+ VariableAllocationInfo allocation = ReceiverVariableField::decode(Flags());
+ return allocation == CONTEXT;
+ } else {
+ return false;
+ }
+}
+
+
bool ScopeInfo::HasNewTarget() { return HasNewTargetField::decode(Flags()); }
« no previous file with comments | « no previous file | src/debug/debug-evaluate.cc » ('j') | src/debug/debug-evaluate.cc » ('J')

Powered by Google App Engine