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

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

Issue 2803853005: Inline Array.prototype.forEach in TurboFan (Closed)
Patch Set: Review feedback Created 3 years, 7 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
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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 struct InliningPhase { 785 struct InliningPhase {
786 static const char* phase_name() { return "inlining"; } 786 static const char* phase_name() { return "inlining"; }
787 787
788 void Run(PipelineData* data, Zone* temp_zone) { 788 void Run(PipelineData* data, Zone* temp_zone) {
789 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 789 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
790 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), 790 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(),
791 data->common()); 791 data->common());
792 CheckpointElimination checkpoint_elimination(&graph_reducer); 792 CheckpointElimination checkpoint_elimination(&graph_reducer);
793 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), 793 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(),
794 data->common(), data->machine()); 794 data->common(), data->machine());
795 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(), 795 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(), temp_zone,
796 data->native_context(), 796 data->native_context(),
797 data->info()->dependencies()); 797 data->info()->dependencies());
798 JSContextSpecialization context_specialization( 798 JSContextSpecialization context_specialization(
799 &graph_reducer, data->jsgraph(), 799 &graph_reducer, data->jsgraph(),
800 data->info()->is_function_context_specializing() 800 data->info()->is_function_context_specializing()
801 ? handle(data->info()->context()) 801 ? handle(data->info()->context())
802 : MaybeHandle<Context>(), 802 : MaybeHandle<Context>(),
803 data->info()->is_function_context_specializing() 803 data->info()->is_function_context_specializing()
804 ? data->info()->closure() 804 ? data->info()->closure()
805 : MaybeHandle<JSFunction>()); 805 : MaybeHandle<JSFunction>());
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
2027 data->DeleteRegisterAllocationZone(); 2027 data->DeleteRegisterAllocationZone();
2028 } 2028 }
2029 2029
2030 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 2030 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
2031 2031
2032 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 2032 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
2033 2033
2034 } // namespace compiler 2034 } // namespace compiler
2035 } // namespace internal 2035 } // namespace internal
2036 } // namespace v8 2036 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698