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

Unified Diff: src/compilation-info.h

Issue 2399833002: Teach Scopes whether they will end up being lazily compiled or not (Closed)
Patch Set: rebase Created 4 years, 2 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/ast/scopes.cc ('k') | src/compilation-info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compilation-info.h
diff --git a/src/compilation-info.h b/src/compilation-info.h
index 88477ae75ea44db5a09c7a56fe8963fac84bcd4d..396613de28c8071512017d47f1808eae6db7a585 100644
--- a/src/compilation-info.h
+++ b/src/compilation-info.h
@@ -39,7 +39,7 @@ class CompilationInfo final {
kRequiresFrame = 1 << 3,
kMustNotHaveEagerFrame = 1 << 4,
kDeoptimizationSupport = 1 << 5,
- kDebug = 1 << 6,
+ kAccessorInliningEnabled = 1 << 6,
kSerializing = 1 << 7,
kFunctionContextSpecializing = 1 << 8,
kFrameSpecializing = 1 << 9,
@@ -52,7 +52,6 @@ class CompilationInfo final {
kBailoutOnUninitialized = 1 << 16,
kOptimizeFromBytecode = 1 << 17,
kTypeFeedbackEnabled = 1 << 18,
- kAccessorInliningEnabled = 1 << 19,
};
CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure);
@@ -122,13 +121,13 @@ class CompilationInfo final {
// Inner functions that cannot be compiled w/o context are compiled eagerly.
// Always include deoptimization support to avoid having to recompile again.
void MarkAsDebug() {
- SetFlag(kDebug);
+ set_is_debug();
SetFlag(kDeoptimizationSupport);
}
- bool is_debug() const { return GetFlag(kDebug); }
+ bool is_debug() const;
- void PrepareForSerializing() { SetFlag(kSerializing); }
+ void PrepareForSerializing();
bool will_serialize() const { return GetFlag(kSerializing); }
@@ -346,6 +345,8 @@ class CompilationInfo final {
bool GetFlag(Flag flag) const { return (flags_ & flag) != 0; }
+ void set_is_debug();
+
unsigned flags_;
Code::Flags code_flags_;
« no previous file with comments | « src/ast/scopes.cc ('k') | src/compilation-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698