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

Unified Diff: src/compiler.cc

Issue 2146573004: [turbofan] Remove fallback to TurboFan when Crankshaft bails out. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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/compiler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 8fac53e970322fee813cdfbd3e05cb07ef7a6239..7e658c34cb7598fba57f3c087b6a0bc0fbc9e575 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -143,7 +143,9 @@ CompilationInfo::CompilationInfo(ParseInfo* parse_info,
debug_name_(debug_name) {}
CompilationInfo::~CompilationInfo() {
- DisableFutureOptimization();
+ if (GetFlag(kDisableFutureOptimization) && has_shared_info()) {
+ shared_info()->DisableOptimization(bailout_reason());
+ }
dependencies()->Rollback();
delete deferred_handles_;
}
@@ -627,9 +629,9 @@ bool Renumber(ParseInfo* parse_info) {
if (lit->dont_optimize_reason() != kNoReason) {
shared_info->DisableOptimization(lit->dont_optimize_reason());
}
- shared_info->set_dont_crankshaft(
- shared_info->dont_crankshaft() ||
- (lit->flags() & AstProperties::kDontCrankshaft));
+ if (lit->flags() & AstProperties::kDontCrankshaft) {
+ shared_info->set_dont_crankshaft(true);
+ }
}
return true;
}
« no previous file with comments | « src/compiler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698