| 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/adapters.h" | 10 #include "src/base/adapters.h" |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 AddReducer(data, &graph_reducer, &common_reducer); | 797 AddReducer(data, &graph_reducer, &common_reducer); |
| 798 if (data->info()->is_frame_specializing()) { | 798 if (data->info()->is_frame_specializing()) { |
| 799 AddReducer(data, &graph_reducer, &frame_specialization); | 799 AddReducer(data, &graph_reducer, &frame_specialization); |
| 800 } | 800 } |
| 801 if (data->info()->is_deoptimization_enabled()) { | 801 if (data->info()->is_deoptimization_enabled()) { |
| 802 AddReducer(data, &graph_reducer, &global_object_specialization); | 802 AddReducer(data, &graph_reducer, &global_object_specialization); |
| 803 } | 803 } |
| 804 AddReducer(data, &graph_reducer, &native_context_specialization); | 804 AddReducer(data, &graph_reducer, &native_context_specialization); |
| 805 AddReducer(data, &graph_reducer, &context_specialization); | 805 AddReducer(data, &graph_reducer, &context_specialization); |
| 806 AddReducer(data, &graph_reducer, &call_reducer); | 806 AddReducer(data, &graph_reducer, &call_reducer); |
| 807 AddReducer(data, &graph_reducer, &inlining); | 807 if (!data->info()->is_optimizing_from_bytecode()) { |
| 808 AddReducer(data, &graph_reducer, &inlining); |
| 809 } |
| 808 graph_reducer.ReduceGraph(); | 810 graph_reducer.ReduceGraph(); |
| 809 } | 811 } |
| 810 }; | 812 }; |
| 811 | 813 |
| 812 | 814 |
| 813 struct TyperPhase { | 815 struct TyperPhase { |
| 814 static const char* phase_name() { return "typer"; } | 816 static const char* phase_name() { return "typer"; } |
| 815 | 817 |
| 816 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) { | 818 void Run(PipelineData* data, Zone* temp_zone, Typer* typer) { |
| 817 NodeVector roots(temp_zone); | 819 NodeVector roots(temp_zone); |
| (...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1794 data->DeleteRegisterAllocationZone(); | 1796 data->DeleteRegisterAllocationZone(); |
| 1795 } | 1797 } |
| 1796 | 1798 |
| 1797 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1799 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
| 1798 | 1800 |
| 1799 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1801 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
| 1800 | 1802 |
| 1801 } // namespace compiler | 1803 } // namespace compiler |
| 1802 } // namespace internal | 1804 } // namespace internal |
| 1803 } // namespace v8 | 1805 } // namespace v8 |
| OLD | NEW |