Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: src/compiler/pipeline.cc

Issue 2659623002: [turbofan] Reduce CallConstructWithSpread where iteration is not observable. (Closed)
Patch Set: respond to comments from Benedikt Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | test/mjsunit/es6/super-with-spread.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 774 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
775 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), 775 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(),
776 data->common()); 776 data->common());
777 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), 777 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(),
778 data->common(), data->machine()); 778 data->common(), data->machine());
779 JSCallReducer::Flags call_reducer_flags = JSCallReducer::kNoFlags; 779 JSCallReducer::Flags call_reducer_flags = JSCallReducer::kNoFlags;
780 if (data->info()->is_deoptimization_enabled()) { 780 if (data->info()->is_deoptimization_enabled()) {
781 call_reducer_flags |= JSCallReducer::kDeoptimizationEnabled; 781 call_reducer_flags |= JSCallReducer::kDeoptimizationEnabled;
782 } 782 }
783 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(), 783 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(),
784 call_reducer_flags, data->native_context()); 784 call_reducer_flags, data->native_context(),
785 data->info()->dependencies());
785 JSContextSpecialization context_specialization( 786 JSContextSpecialization context_specialization(
786 &graph_reducer, data->jsgraph(), 787 &graph_reducer, data->jsgraph(),
787 data->info()->is_function_context_specializing() 788 data->info()->is_function_context_specializing()
788 ? handle(data->info()->context()) 789 ? handle(data->info()->context())
789 : MaybeHandle<Context>()); 790 : MaybeHandle<Context>());
790 JSFrameSpecialization frame_specialization( 791 JSFrameSpecialization frame_specialization(
791 &graph_reducer, data->info()->osr_frame(), data->jsgraph()); 792 &graph_reducer, data->info()->osr_frame(), data->jsgraph());
792 JSGlobalObjectSpecialization global_object_specialization( 793 JSGlobalObjectSpecialization global_object_specialization(
793 &graph_reducer, data->jsgraph(), data->global_object(), 794 &graph_reducer, data->jsgraph(), data->global_object(),
794 data->info()->dependencies()); 795 data->info()->dependencies());
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 data->DeleteRegisterAllocationZone(); 2015 data->DeleteRegisterAllocationZone();
2015 } 2016 }
2016 2017
2017 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 2018 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
2018 2019
2019 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 2020 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
2020 2021
2021 } // namespace compiler 2022 } // namespace compiler
2022 } // namespace internal 2023 } // namespace internal
2023 } // namespace v8 2024 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | test/mjsunit/es6/super-with-spread.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698