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

Unified Diff: src/compiler.h

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 | « no previous file | src/compiler.cc » ('j') | no next file with comments »
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 150e15101264a3e11c86853861413674cd24713f..1261eacda52e5c74e1ff2c35743cb448aa436e36 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -438,27 +438,6 @@ class CompilationInfo final {
SourcePositionTableBuilder::RecordingMode SourcePositionRecordingMode() const;
- protected:
- ParseInfo* parse_info_;
-
- void DisableFutureOptimization() {
- if (GetFlag(kDisableFutureOptimization) && has_shared_info()) {
- // If Crankshaft tried to optimize this function, bailed out, and
- // doesn't want to try again, then use TurboFan next time.
- if (!shared_info()->dont_crankshaft() &&
- bailout_reason() != kOptimizedTooManyTimes) {
- shared_info()->set_dont_crankshaft(true);
- if (FLAG_trace_opt) {
- PrintF("[disabled Crankshaft for ");
- shared_info()->ShortPrint();
- PrintF(", reason: %s]\n", GetBailoutReason(bailout_reason()));
- }
- } else {
- shared_info()->DisableOptimization(bailout_reason());
- }
- }
- }
-
private:
// Compilation mode.
// BASE is generated by the full codegen, optionally prepared for bailouts.
@@ -473,6 +452,7 @@ class CompilationInfo final {
Code::Flags code_flags, Mode mode, Isolate* isolate,
Zone* zone);
+ ParseInfo* parse_info_;
Isolate* isolate_;
void SetMode(Mode mode) {
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698