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

Unified Diff: src/compiler.h

Issue 594513002: Do not serialize non-lazy compiled function literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | src/compiler.cc » ('j') | src/serialize.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index ea93f408c653127fe2c3cd58bf49140df3efdf6b..a0b0346520e12dce3edd551bea9512f711075314 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -82,7 +82,8 @@ class CompilationInfo {
kSerializing = 1 << 15,
kContextSpecializing = 1 << 16,
kInliningEnabled = 1 << 17,
- kTypingEnabled = 1 << 18
+ kTypingEnabled = 1 << 18,
+ kToplevel = 1 << 19
};
CompilationInfo(Handle<JSFunction> closure, Zone* zone);
@@ -205,6 +206,10 @@ class CompilationInfo {
bool is_typing_enabled() const { return GetFlag(kTypingEnabled); }
+ void MarkAsToplevel() { SetFlag(kToplevel); }
+
+ bool is_toplevel() const { return GetFlag(kToplevel); }
+
bool IsCodePreAgingActive() const {
return FLAG_optimize_for_size && FLAG_age_code && !will_serialize() &&
!is_debug();
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698