Index: src/compiler/pipeline.cc |
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
index c43ed1bff0ae83547ba5284968a27b8bf4895bfe..70de7fb0efed28ef7d30f20680f018ad91fb7b9c 100644 |
--- a/src/compiler/pipeline.cc |
+++ b/src/compiler/pipeline.cc |
@@ -751,15 +751,8 @@ void Pipeline::RunPrintAndVerify(const char* phase, bool untyped) { |
Handle<Code> Pipeline::GenerateCode() { |
- // This list must be kept in sync with DisableTurbofan in ast-numbering.cc. |
- if (info()->function()->dont_optimize_reason() == kTryCatchStatement || |
- info()->function()->dont_optimize_reason() == kTryFinallyStatement || |
- // TODO(turbofan): Make super work and remove this bailout. |
- info()->function()->dont_optimize_reason() == kSuperReference || |
- // TODO(turbofan): Make OSR work with inner loops and remove this bailout. |
- (info()->is_osr() && !FLAG_turbo_osr)) { |
- return Handle<Code>::null(); |
- } |
+ // TODO(turbofan): Make OSR work with inner loops and remove this bailout. |
+ if (info()->is_osr() && !FLAG_turbo_osr) return Handle<Code>::null(); |
ZonePool zone_pool(isolate()); |
SmartPointer<PipelineStatistics> pipeline_statistics; |