aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/objects/scope-info.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/objects/scope-info.h')
-rw-r--r--deps/v8/src/objects/scope-info.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/deps/v8/src/objects/scope-info.h b/deps/v8/src/objects/scope-info.h
index b5fb1d1a7c..8d43357631 100644
--- a/deps/v8/src/objects/scope-info.h
+++ b/deps/v8/src/objects/scope-info.h
@@ -5,11 +5,11 @@
#ifndef V8_OBJECTS_SCOPE_INFO_H_
#define V8_OBJECTS_SCOPE_INFO_H_
-#include "src/function-kind.h"
-#include "src/globals.h"
-#include "src/objects.h"
+#include "src/common/globals.h"
#include "src/objects/fixed-array.h"
-#include "src/utils.h"
+#include "src/objects/function-kind.h"
+#include "src/objects/objects.h"
+#include "src/utils/utils.h"
// Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h"
@@ -69,6 +69,9 @@ class ScopeInfo : public FixedArray {
// or context-allocated?
bool HasAllocatedReceiver() const;
+ // Does this scope has class brand (for private methods)?
+ bool HasClassBrand() const;
+
// Does this scope declare a "new.target" binding?
bool HasNewTarget() const;
@@ -228,8 +231,10 @@ class ScopeInfo : public FixedArray {
class ReceiverVariableField
: public BitField<VariableAllocationInfo, DeclarationScopeField::kNext,
2> {};
- class HasNewTargetField
+ class HasClassBrandField
: public BitField<bool, ReceiverVariableField::kNext, 1> {};
+ class HasNewTargetField
+ : public BitField<bool, HasClassBrandField::kNext, 1> {};
class FunctionVariableField
: public BitField<VariableAllocationInfo, HasNewTargetField::kNext, 2> {};
// TODO(cbruni): Combine with function variable field when only storing the