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

Unified Diff: src/objects.h

Issue 1492393003: Reland of [debugger] do not restart frames that reference new.target for liveedit. (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. 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/debug/x64/debug-x64.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 8f8908dc98a5346bb2f28c78072ae94222846c33..a19601ef0f6157d5017ba833cfcdd833ada40e2a 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -4001,6 +4001,9 @@
// or context-allocated?
bool HasAllocatedReceiver();
+ // Does this scope declare a "new.target" binding?
+ bool HasNewTarget();
+
// Is this scope the scope of a named function expression?
bool HasFunctionName();
@@ -4209,9 +4212,10 @@
class ReceiverVariableField
: public BitField<VariableAllocationInfo, DeclarationScopeField::kNext,
2> {};
+ class HasNewTargetField
+ : public BitField<bool, ReceiverVariableField::kNext, 1> {};
class FunctionVariableField
- : public BitField<VariableAllocationInfo, ReceiverVariableField::kNext,
- 2> {};
+ : public BitField<VariableAllocationInfo, HasNewTargetField::kNext, 2> {};
class FunctionVariableMode
: public BitField<VariableMode, FunctionVariableField::kNext, 3> {};
class AsmModuleField : public BitField<bool, FunctionVariableMode::kNext, 1> {
« no previous file with comments | « src/debug/x64/debug-x64.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698