Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 7edcda864863df8f258b1f23f45c48a49cf3fe86..7d79ec036a43c004ef2d4ac25ad308569f119613 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -6750,6 +6750,11 @@ class Script: public Struct { |
// the 'flags' field. |
DECL_BOOLEAN_ACCESSORS(is_shared_cross_origin) |
+ // [is_opaque]: An opaque boolean set by the embedder via ScriptOrigin, and |
+ // used by the embedder to make decisions about the opaqueness of script. V8 |
+ // just passes this through. Encoded in the 'flags' field. |
+ DECL_BOOLEAN_ACCESSORS(is_opaque) |
+ |
DECLARE_CAST(Script) |
// If script source is an external string, check that the underlying |
@@ -6802,6 +6807,7 @@ class Script: public Struct { |
static const int kCompilationStateBit = 1; |
static const int kIsEmbedderDebugScriptBit = 2; |
static const int kIsSharedCrossOriginBit = 3; |
+ static const int kIsOpaqueBit = 4; |
DISALLOW_IMPLICIT_CONSTRUCTORS(Script); |
}; |
@@ -10548,7 +10554,7 @@ class AccessorInfo: public Struct { |
// Bit positions in flag. |
static const int kAllCanReadBit = 0; |
static const int kAllCanWriteBit = 1; |
- class AttributesField: public BitField<PropertyAttributes, 2, 3> {}; |
+ class AttributesField : public BitField<PropertyAttributes, 2, 3> {}; |
DISALLOW_IMPLICIT_CONSTRUCTORS(AccessorInfo); |
}; |