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

Unified Diff: src/compilation-info.h

Issue 2533303002: [turbofan] Disable loop peeling for asm.js. (Closed)
Patch Set: Created 4 years, 1 month 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/pipeline.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 2abf624fdf1b002b4bb6d68f839d6285f08a369b..863183b5cd3516b2007e05463b615d805b93d788 100644
--- a/src/compilation-info.h
+++ b/src/compilation-info.h
@@ -49,6 +49,7 @@ class CompilationInfo final {
kSourcePositionsEnabled = 1 << 13,
kBailoutOnUninitialized = 1 << 14,
kOptimizeFromBytecode = 1 << 15,
+ kLoopPeelingEnabled = 1 << 16,
};
CompilationInfo(ParseInfo* parse_info, Handle<JSFunction> closure);
@@ -172,6 +173,10 @@ class CompilationInfo final {
return GetFlag(kOptimizeFromBytecode);
}
+ void MarkAsLoopPeelingEnabled() { SetFlag(kLoopPeelingEnabled); }
+
+ bool is_loop_peeling_enabled() const { return GetFlag(kLoopPeelingEnabled); }
+
bool GeneratePreagedPrologue() const {
// Generate a pre-aged prologue if we are optimizing for size, which
// will make code flushing more aggressive. Only apply to Code::FUNCTION,
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698