Chromium Code Reviews| Index: src/objects.h |
| diff --git a/src/objects.h b/src/objects.h |
| index 7edcda864863df8f258b1f23f45c48a49cf3fe86..85c7071f75334c0f0009311c3198f6ee58418633 100644 |
| --- a/src/objects.h |
| +++ b/src/objects.h |
| @@ -6738,17 +6738,11 @@ class Script: public Struct { |
| inline CompilationState compilation_state(); |
| inline void set_compilation_state(CompilationState state); |
| - // [is_embedder_debug_script]: An opaque boolean set by the embedder via |
| - // ScriptOrigin, and used by the embedder to make decisions about the |
| - // script's origin. V8 just passes this through. Encoded in |
| - // the 'flags' field. |
| - DECL_BOOLEAN_ACCESSORS(is_embedder_debug_script) |
| - |
| - // [is_shared_cross_origin]: An opaque boolean set by the embedder via |
| - // ScriptOrigin, and used by the embedder to make decisions about the |
| - // script's level of privilege. V8 just passes this through. Encoded in |
| - // the 'flags' field. |
| - DECL_BOOLEAN_ACCESSORS(is_shared_cross_origin) |
| + // [origin_options]: optional attributes set by the embedder via ScriptOrigin, |
| + // and used by the embedder to make decisions about the script. V8 just passes |
| + // this through. Encoded in the 'flags' field. |
| + inline ScriptOriginOptions origin_options(); |
|
Yang
2015/05/18 11:21:25
Please change this to v8::ScriptOriginOptions to b
horo
2015/05/18 13:19:53
Done.
|
| + inline void set_origin_options(ScriptOriginOptions origin_options); |
| DECLARE_CAST(Script) |
| @@ -6800,8 +6794,10 @@ class Script: public Struct { |
| // Bit positions in the flags field. |
| static const int kCompilationTypeBit = 0; |
| static const int kCompilationStateBit = 1; |
| - static const int kIsEmbedderDebugScriptBit = 2; |
| - static const int kIsSharedCrossOriginBit = 3; |
| + static const int kOriginOptionsShift = 2; |
| + static const int kOriginOptionsSize = 3; |
| + static const int kOriginOptionsMask = ((1 << kOriginOptionsSize) - 1) |
| + << kOriginOptionsShift; |
| DISALLOW_IMPLICIT_CONSTRUCTORS(Script); |
| }; |
| @@ -10548,7 +10544,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); |
| }; |