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

Unified Diff: src/objects.h

Issue 1140673002: [V8] Added Script::is_opaque flag for embedders (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Introduces ScriptOriginOptions Created 5 years, 7 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
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);
};
« src/compilation-cache.cc ('K') | « src/debug.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698