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

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

Issue 2132403002: [turbofan] Remove dead code from SimplifiedLowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@TurboFan_CheckBounds
Patch Set: Created 4 years, 5 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 | « no previous file | src/compiler/simplified-lowering.h » ('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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 AddReducer(data, &graph_reducer, &escape_reducer); 932 AddReducer(data, &graph_reducer, &escape_reducer);
933 graph_reducer.ReduceGraph(); 933 graph_reducer.ReduceGraph();
934 escape_reducer.VerifyReplacement(); 934 escape_reducer.VerifyReplacement();
935 } 935 }
936 }; 936 };
937 937
938 struct RepresentationSelectionPhase { 938 struct RepresentationSelectionPhase {
939 static const char* phase_name() { return "representation selection"; } 939 static const char* phase_name() { return "representation selection"; }
940 940
941 void Run(PipelineData* data, Zone* temp_zone) { 941 void Run(PipelineData* data, Zone* temp_zone) {
942 SimplifiedLowering::Flags flags =
943 data->info()->is_type_feedback_enabled()
944 ? SimplifiedLowering::kTypeFeedbackEnabled
945 : SimplifiedLowering::kNoFlag;
946 SimplifiedLowering lowering(data->jsgraph(), temp_zone, 942 SimplifiedLowering lowering(data->jsgraph(), temp_zone,
947 data->source_positions(), flags); 943 data->source_positions());
948 lowering.LowerAllNodes(); 944 lowering.LowerAllNodes();
949 } 945 }
950 }; 946 };
951 947
952 struct EarlyOptimizationPhase { 948 struct EarlyOptimizationPhase {
953 static const char* phase_name() { return "early optimization"; } 949 static const char* phase_name() { return "early optimization"; }
954 950
955 void Run(PipelineData* data, Zone* temp_zone) { 951 void Run(PipelineData* data, Zone* temp_zone) {
956 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 952 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
957 JSGenericLowering generic_lowering(data->jsgraph()); 953 JSGenericLowering generic_lowering(data->jsgraph());
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 data->DeleteRegisterAllocationZone(); 1831 data->DeleteRegisterAllocationZone();
1836 } 1832 }
1837 1833
1838 CompilationInfo* PipelineImpl::info() const { return data_->info(); } 1834 CompilationInfo* PipelineImpl::info() const { return data_->info(); }
1839 1835
1840 Isolate* PipelineImpl::isolate() const { return info()->isolate(); } 1836 Isolate* PipelineImpl::isolate() const { return info()->isolate(); }
1841 1837
1842 } // namespace compiler 1838 } // namespace compiler
1843 } // namespace internal 1839 } // namespace internal
1844 } // namespace v8 1840 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/simplified-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698