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

Unified Diff: src/objects-inl.h

Issue 2065453002: [module] Track script "module code" status Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use idiomatic variable names Created 4 years, 6 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
« no previous file with comments | « src/objects.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 4bf439095ebac474606f265bef9c5d87942ceacd..abc727fff8720ef888c8456e214b4877063ab8b3 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5727,7 +5727,10 @@ void Script::set_origin_options(ScriptOriginOptions origin_options) {
set_flags((flags() & ~kOriginOptionsMask) |
(origin_options.Flags() << kOriginOptionsShift));
}
-
+bool Script::is_module() { return BooleanBit::get(flags(), kIsModuleBit); }
+void Script::set_is_module(bool value) {
+ set_flags(BooleanBit::set(flags(), kIsModuleBit, value));
+}
ACCESSORS(DebugInfo, shared, SharedFunctionInfo, kSharedFunctionInfoIndex)
ACCESSORS(DebugInfo, abstract_code, AbstractCode, kAbstractCodeIndex)
« no previous file with comments | « src/objects.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698