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 <memory> | 8 #include <memory> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 static const char* phase_name() { return "inlining"; } | 902 static const char* phase_name() { return "inlining"; } |
903 | 903 |
904 void Run(PipelineData* data, Zone* temp_zone) { | 904 void Run(PipelineData* data, Zone* temp_zone) { |
905 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 905 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
906 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 906 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
907 data->common()); | 907 data->common()); |
908 CheckpointElimination checkpoint_elimination(&graph_reducer); | 908 CheckpointElimination checkpoint_elimination(&graph_reducer); |
909 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), | 909 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
910 data->common(), data->machine()); | 910 data->common(), data->machine()); |
911 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(), | 911 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(), |
| 912 data->info()->is_bailout_on_uninitialized() |
| 913 ? JSCallReducer::kBailoutOnUninitialized |
| 914 : JSCallReducer::kNoFlags, |
912 data->native_context(), | 915 data->native_context(), |
913 data->info()->dependencies()); | 916 data->info()->dependencies()); |
914 JSContextSpecialization context_specialization( | 917 JSContextSpecialization context_specialization( |
915 &graph_reducer, data->jsgraph(), | 918 &graph_reducer, data->jsgraph(), |
916 ChooseSpecializationContext(data->info()), | 919 ChooseSpecializationContext(data->info()), |
917 data->info()->is_function_context_specializing() | 920 data->info()->is_function_context_specializing() |
918 ? data->info()->closure() | 921 ? data->info()->closure() |
919 : MaybeHandle<JSFunction>()); | 922 : MaybeHandle<JSFunction>()); |
920 JSFrameSpecialization frame_specialization( | 923 JSFrameSpecialization frame_specialization( |
921 &graph_reducer, data->info()->osr_frame(), data->jsgraph()); | 924 &graph_reducer, data->info()->osr_frame(), data->jsgraph()); |
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2151 data->DeleteRegisterAllocationZone(); | 2154 data->DeleteRegisterAllocationZone(); |
2152 } | 2155 } |
2153 | 2156 |
2154 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 2157 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
2155 | 2158 |
2156 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 2159 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
2157 | 2160 |
2158 } // namespace compiler | 2161 } // namespace compiler |
2159 } // namespace internal | 2162 } // namespace internal |
2160 } // namespace v8 | 2163 } // namespace v8 |
OLD | NEW |