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

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

Issue 1951853002: [turbofan] Inline the allocation fast path. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/compiler/change-lowering.cc ('k') | test/cctest/compiler/test-simplified-lowering.cc » ('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 <sstream> 8 #include <sstream>
9 9
10 #include "src/base/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 }; 1020 };
1021 1021
1022 struct LateOptimizationPhase { 1022 struct LateOptimizationPhase {
1023 static const char* phase_name() { return "late optimization"; } 1023 static const char* phase_name() { return "late optimization"; }
1024 1024
1025 void Run(PipelineData* data, Zone* temp_zone) { 1025 void Run(PipelineData* data, Zone* temp_zone) {
1026 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 1026 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
1027 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), 1027 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(),
1028 data->common()); 1028 data->common());
1029 ValueNumberingReducer value_numbering(temp_zone); 1029 ValueNumberingReducer value_numbering(temp_zone);
1030 ChangeLowering lowering(data->jsgraph()); 1030 ChangeLowering lowering(&graph_reducer, data->jsgraph());
1031 MachineOperatorReducer machine_reducer(data->jsgraph()); 1031 MachineOperatorReducer machine_reducer(data->jsgraph());
1032 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), 1032 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(),
1033 data->common(), data->machine()); 1033 data->common(), data->machine());
1034 SelectLowering select_lowering(data->jsgraph()->graph(), 1034 SelectLowering select_lowering(data->jsgraph()->graph(),
1035 data->jsgraph()->common()); 1035 data->jsgraph()->common());
1036 TailCallOptimization tco(data->common(), data->graph()); 1036 TailCallOptimization tco(data->common(), data->graph());
1037 AddReducer(data, &graph_reducer, &dead_code_elimination); 1037 AddReducer(data, &graph_reducer, &dead_code_elimination);
1038 AddReducer(data, &graph_reducer, &value_numbering); 1038 AddReducer(data, &graph_reducer, &value_numbering);
1039 AddReducer(data, &graph_reducer, &lowering); 1039 AddReducer(data, &graph_reducer, &lowering);
1040 AddReducer(data, &graph_reducer, &machine_reducer); 1040 AddReducer(data, &graph_reducer, &machine_reducer);
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 data->DeleteRegisterAllocationZone(); 1799 data->DeleteRegisterAllocationZone();
1800 } 1800 }
1801 1801
1802 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 1802 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
1803 1803
1804 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 1804 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
1805 1805
1806 } // namespace compiler 1806 } // namespace compiler
1807 } // namespace internal 1807 } // namespace internal
1808 } // namespace v8 1808 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/change-lowering.cc ('k') | test/cctest/compiler/test-simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698