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

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

Issue 1887343002: [turbofan] Remove the leftover LoadBuffer hacks. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Created 4 years, 8 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 764
765 765
766 struct SimplifiedLoweringPhase { 766 struct SimplifiedLoweringPhase {
767 static const char* phase_name() { return "simplified lowering"; } 767 static const char* phase_name() { return "simplified lowering"; }
768 768
769 void Run(PipelineData* data, Zone* temp_zone) { 769 void Run(PipelineData* data, Zone* temp_zone) {
770 SimplifiedLowering lowering(data->jsgraph(), temp_zone, 770 SimplifiedLowering lowering(data->jsgraph(), temp_zone,
771 data->source_positions()); 771 data->source_positions());
772 lowering.LowerAllNodes(); 772 lowering.LowerAllNodes();
773 773
774 // TODO(bmeurer): See comment on SimplifiedLowering::abort_compilation_.
775 if (lowering.abort_compilation_) {
776 data->set_compilation_failed();
777 return;
778 }
779
780 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); 774 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone);
781 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), 775 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(),
782 data->common()); 776 data->common());
783 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); 777 SimplifiedOperatorReducer simple_reducer(data->jsgraph());
784 ValueNumberingReducer value_numbering(temp_zone); 778 ValueNumberingReducer value_numbering(temp_zone);
785 MachineOperatorReducer machine_reducer(data->jsgraph()); 779 MachineOperatorReducer machine_reducer(data->jsgraph());
786 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), 780 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(),
787 data->common(), data->machine()); 781 data->common(), data->machine());
788 AddReducer(data, &graph_reducer, &dead_code_elimination); 782 AddReducer(data, &graph_reducer, &dead_code_elimination);
789 AddReducer(data, &graph_reducer, &simple_reducer); 783 AddReducer(data, &graph_reducer, &simple_reducer);
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 // TODO(jarin, rossberg): Remove UNTYPED once machine typing works. 1274 // TODO(jarin, rossberg): Remove UNTYPED once machine typing works.
1281 RunPrintAndVerify("Late trimmed", true); 1275 RunPrintAndVerify("Late trimmed", true);
1282 1276
1283 BeginPhaseKind("block building"); 1277 BeginPhaseKind("block building");
1284 1278
1285 data.source_positions()->RemoveDecorator(); 1279 data.source_positions()->RemoveDecorator();
1286 1280
1287 // Kill the Typer and thereby uninstall the decorator (if any). 1281 // Kill the Typer and thereby uninstall the decorator (if any).
1288 typer.Reset(nullptr); 1282 typer.Reset(nullptr);
1289 1283
1290 // TODO(bmeurer): See comment on SimplifiedLowering::abort_compilation_.
1291 if (data.compilation_failed()) return Handle<Code>::null();
1292
1293 return ScheduleAndGenerateCode( 1284 return ScheduleAndGenerateCode(
1294 Linkage::ComputeIncoming(data.instruction_zone(), info())); 1285 Linkage::ComputeIncoming(data.instruction_zone(), info()));
1295 } 1286 }
1296 1287
1297 1288
1298 Handle<Code> Pipeline::GenerateCodeForCodeStub(Isolate* isolate, 1289 Handle<Code> Pipeline::GenerateCodeForCodeStub(Isolate* isolate,
1299 CallDescriptor* call_descriptor, 1290 CallDescriptor* call_descriptor,
1300 Graph* graph, Schedule* schedule, 1291 Graph* graph, Schedule* schedule,
1301 Code::Flags flags, 1292 Code::Flags flags,
1302 const char* debug_name) { 1293 const char* debug_name) {
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
1573 } 1564 }
1574 1565
1575 data->DeleteRegisterAllocationZone(); 1566 data->DeleteRegisterAllocationZone();
1576 } 1567 }
1577 1568
1578 Isolate* Pipeline::isolate() const { return info()->isolate(); } 1569 Isolate* Pipeline::isolate() const { return info()->isolate(); }
1579 1570
1580 } // namespace compiler 1571 } // namespace compiler
1581 } // namespace internal 1572 } // namespace internal
1582 } // namespace v8 1573 } // 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