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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), | 792 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
793 data->common(), data->machine()); | 793 data->common(), data->machine()); |
794 JSCallReducer call_reducer(data->jsgraph(), | 794 JSCallReducer call_reducer(data->jsgraph(), |
795 data->info()->is_deoptimization_enabled() | 795 data->info()->is_deoptimization_enabled() |
796 ? JSCallReducer::kDeoptimizationEnabled | 796 ? JSCallReducer::kDeoptimizationEnabled |
797 : JSCallReducer::kNoFlags, | 797 : JSCallReducer::kNoFlags, |
798 data->native_context()); | 798 data->native_context()); |
799 JSContextSpecialization context_specialization( | 799 JSContextSpecialization context_specialization( |
800 &graph_reducer, data->jsgraph(), | 800 &graph_reducer, data->jsgraph(), |
801 data->info()->is_function_context_specializing() | 801 data->info()->is_function_context_specializing() |
802 ? data->info()->context() | 802 ? handle(data->info()->context()) |
803 : MaybeHandle<Context>()); | 803 : MaybeHandle<Context>()); |
804 JSFrameSpecialization frame_specialization(data->info()->osr_frame(), | 804 JSFrameSpecialization frame_specialization(data->info()->osr_frame(), |
805 data->jsgraph()); | 805 data->jsgraph()); |
806 JSGlobalObjectSpecialization global_object_specialization( | 806 JSGlobalObjectSpecialization global_object_specialization( |
807 &graph_reducer, data->jsgraph(), data->native_context(), | 807 &graph_reducer, data->jsgraph(), data->native_context(), |
808 data->info()->dependencies()); | 808 data->info()->dependencies()); |
809 JSNativeContextSpecialization::Flags flags = | 809 JSNativeContextSpecialization::Flags flags = |
810 JSNativeContextSpecialization::kNoFlags; | 810 JSNativeContextSpecialization::kNoFlags; |
811 if (data->info()->is_accessor_inlining_enabled()) { | 811 if (data->info()->is_accessor_inlining_enabled()) { |
812 flags |= JSNativeContextSpecialization::kAccessorInliningEnabled; | 812 flags |= JSNativeContextSpecialization::kAccessorInliningEnabled; |
(...skipping 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1946 data->DeleteRegisterAllocationZone(); | 1946 data->DeleteRegisterAllocationZone(); |
1947 } | 1947 } |
1948 | 1948 |
1949 CompilationInfo* PipelineImpl::info() const { return data_->info(); } | 1949 CompilationInfo* PipelineImpl::info() const { return data_->info(); } |
1950 | 1950 |
1951 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } | 1951 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } |
1952 | 1952 |
1953 } // namespace compiler | 1953 } // namespace compiler |
1954 } // namespace internal | 1954 } // namespace internal |
1955 } // namespace v8 | 1955 } // namespace v8 |
OLD | NEW |