Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 06802ca0a072973cde95d866b7dbb32156b89ec1..fbef269b3b2e8eb69f9c69c54d2da05c03da43fa 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -5551,9 +5551,6 @@ ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) |
ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, |
kEvalFrominstructionsOffsetOffset) |
ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) |
-BOOL_ACCESSORS(Script, flags, is_embedder_debug_script, |
- kIsEmbedderDebugScriptBit) |
-BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) |
ACCESSORS(Script, source_url, Object, kSourceUrlOffset) |
ACCESSORS(Script, source_mapping_url, Object, kSourceMappingUrlOffset) |
@@ -5573,6 +5570,15 @@ void Script::set_compilation_state(CompilationState state) { |
set_flags(BooleanBit::set(flags(), kCompilationStateBit, |
state == COMPILATION_STATE_COMPILED)); |
} |
+ScriptOriginOptions Script::origin_options() { |
+ return ScriptOriginOptions((flags()->value() & kOriginOptionsMask) >> |
+ kOriginOptionsShift); |
+} |
+void Script::set_origin_options(ScriptOriginOptions origin_options) { |
+ DCHECK(!(origin_options.Flags() & ~((1 << kOriginOptionsSize) - 1))); |
+ set_flags(Smi::FromInt((flags()->value() & ~kOriginOptionsMask) | |
+ (origin_options.Flags() << kOriginOptionsShift))); |
+} |
ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex) |