| 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 | 911 |
| 912 void Run(PipelineData* data, Zone* temp_zone) { | 912 void Run(PipelineData* data, Zone* temp_zone) { |
| 913 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 913 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
| 914 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 914 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
| 915 data->common()); | 915 data->common()); |
| 916 JSBuiltinReducer builtin_reducer( | 916 JSBuiltinReducer builtin_reducer( |
| 917 &graph_reducer, data->jsgraph(), | 917 &graph_reducer, data->jsgraph(), |
| 918 data->info()->is_deoptimization_enabled() | 918 data->info()->is_deoptimization_enabled() |
| 919 ? JSBuiltinReducer::kDeoptimizationEnabled | 919 ? JSBuiltinReducer::kDeoptimizationEnabled |
| 920 : JSBuiltinReducer::kNoFlags, | 920 : JSBuiltinReducer::kNoFlags, |
| 921 data->info()->dependencies()); | 921 data->info()->dependencies(), data->native_context()); |
| 922 Handle<LiteralsArray> literals_array(data->info()->closure()->literals()); | 922 Handle<LiteralsArray> literals_array(data->info()->closure()->literals()); |
| 923 JSCreateLowering create_lowering( | 923 JSCreateLowering create_lowering( |
| 924 &graph_reducer, data->info()->dependencies(), data->jsgraph(), | 924 &graph_reducer, data->info()->dependencies(), data->jsgraph(), |
| 925 literals_array, data->native_context(), temp_zone); | 925 literals_array, data->native_context(), temp_zone); |
| 926 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; | 926 JSTypedLowering::Flags typed_lowering_flags = JSTypedLowering::kNoFlags; |
| 927 if (data->info()->is_deoptimization_enabled()) { | 927 if (data->info()->is_deoptimization_enabled()) { |
| 928 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; | 928 typed_lowering_flags |= JSTypedLowering::kDeoptimizationEnabled; |
| 929 } | 929 } |
| 930 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), | 930 JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), |
| 931 typed_lowering_flags, data->jsgraph(), | 931 typed_lowering_flags, data->jsgraph(), |
| (...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1995 data->DeleteRegisterAllocationZone(); | 1995 data->DeleteRegisterAllocationZone(); |
| 1996 } | 1996 } |
| 1997 | 1997 |
| 1998 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1998 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
| 1999 | 1999 |
| 2000 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 2000 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
| 2001 | 2001 |
| 2002 } // namespace compiler | 2002 } // namespace compiler |
| 2003 } // namespace internal | 2003 } // namespace internal |
| 2004 } // namespace v8 | 2004 } // namespace v8 |
| OLD | NEW |