| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler/pipeline.h" | 5 #include "src/compiler/pipeline.h" |
| 6 | 6 |
| 7 #include <fstream> // NOLINT(readability/streams) | 7 #include <fstream> // NOLINT(readability/streams) |
| 8 #include <sstream> | 8 #include <sstream> |
| 9 | 9 |
| 10 #include "src/base/platform/elapsed-timer.h" | 10 #include "src/base/platform/elapsed-timer.h" |
| (...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 749 } | 749 } |
| 750 } | 750 } |
| 751 | 751 |
| 752 | 752 |
| 753 Handle<Code> Pipeline::GenerateCode() { | 753 Handle<Code> Pipeline::GenerateCode() { |
| 754 // This list must be kept in sync with DisableTurbofan in ast-numbering.cc. | 754 // This list must be kept in sync with DisableTurbofan in ast-numbering.cc. |
| 755 if (info()->function()->dont_optimize_reason() == kTryCatchStatement || | 755 if (info()->function()->dont_optimize_reason() == kTryCatchStatement || |
| 756 info()->function()->dont_optimize_reason() == kTryFinallyStatement || | 756 info()->function()->dont_optimize_reason() == kTryFinallyStatement || |
| 757 // TODO(turbofan): Make super work and remove this bailout. | 757 // TODO(turbofan): Make super work and remove this bailout. |
| 758 info()->function()->dont_optimize_reason() == kSuperReference || | 758 info()->function()->dont_optimize_reason() == kSuperReference || |
| 759 // TODO(turbofan): Make class literals work and remove this bailout. | |
| 760 info()->function()->dont_optimize_reason() == kClassLiteral || | |
| 761 // TODO(turbofan): Make OSR work with inner loops and remove this bailout. | 759 // TODO(turbofan): Make OSR work with inner loops and remove this bailout. |
| 762 (info()->is_osr() && !FLAG_turbo_osr)) { | 760 (info()->is_osr() && !FLAG_turbo_osr)) { |
| 763 return Handle<Code>::null(); | 761 return Handle<Code>::null(); |
| 764 } | 762 } |
| 765 | 763 |
| 766 ZonePool zone_pool(isolate()); | 764 ZonePool zone_pool(isolate()); |
| 767 SmartPointer<PipelineStatistics> pipeline_statistics; | 765 SmartPointer<PipelineStatistics> pipeline_statistics; |
| 768 | 766 |
| 769 if (FLAG_turbo_stats) { | 767 if (FLAG_turbo_stats) { |
| 770 pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool)); | 768 pipeline_statistics.Reset(new PipelineStatistics(info(), &zone_pool)); |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 } | 1081 } |
| 1084 | 1082 |
| 1085 | 1083 |
| 1086 void Pipeline::TearDown() { | 1084 void Pipeline::TearDown() { |
| 1087 InstructionOperand::TearDownCaches(); | 1085 InstructionOperand::TearDownCaches(); |
| 1088 } | 1086 } |
| 1089 | 1087 |
| 1090 } // namespace compiler | 1088 } // namespace compiler |
| 1091 } // namespace internal | 1089 } // namespace internal |
| 1092 } // namespace v8 | 1090 } // namespace v8 |
| OLD | NEW |