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

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

Issue 800833003: [turbofan] Correctify JSToBoolean lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Improve simplified lowering. Created 5 years, 11 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/opcodes.h ('k') | 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/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 } 434 }
435 }; 435 };
436 436
437 437
438 struct SimplifiedLoweringPhase { 438 struct SimplifiedLoweringPhase {
439 static const char* phase_name() { return "simplified lowering"; } 439 static const char* phase_name() { return "simplified lowering"; }
440 440
441 void Run(PipelineData* data, Zone* temp_zone) { 441 void Run(PipelineData* data, Zone* temp_zone) {
442 SourcePositionTable::Scope pos(data->source_positions(), 442 SourcePositionTable::Scope pos(data->source_positions(),
443 SourcePosition::Unknown()); 443 SourcePosition::Unknown());
444 SimplifiedLowering lowering(data->jsgraph()); 444 SimplifiedLowering lowering(data->jsgraph(), temp_zone);
445 lowering.LowerAllNodes(); 445 lowering.LowerAllNodes();
446 ValueNumberingReducer vn_reducer(temp_zone); 446 ValueNumberingReducer vn_reducer(temp_zone);
447 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); 447 SimplifiedOperatorReducer simple_reducer(data->jsgraph());
448 MachineOperatorReducer machine_reducer(data->jsgraph()); 448 MachineOperatorReducer machine_reducer(data->jsgraph());
449 CommonOperatorReducer common_reducer; 449 CommonOperatorReducer common_reducer;
450 GraphReducer graph_reducer(data->graph(), temp_zone); 450 GraphReducer graph_reducer(data->graph(), temp_zone);
451 graph_reducer.AddReducer(&vn_reducer); 451 graph_reducer.AddReducer(&vn_reducer);
452 graph_reducer.AddReducer(&simple_reducer); 452 graph_reducer.AddReducer(&simple_reducer);
453 graph_reducer.AddReducer(&machine_reducer); 453 graph_reducer.AddReducer(&machine_reducer);
454 graph_reducer.AddReducer(&common_reducer); 454 graph_reducer.AddReducer(&common_reducer);
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 } 1085 }
1086 1086
1087 1087
1088 void Pipeline::TearDown() { 1088 void Pipeline::TearDown() {
1089 InstructionOperand::TearDownCaches(); 1089 InstructionOperand::TearDownCaches();
1090 } 1090 }
1091 1091
1092 } // namespace compiler 1092 } // namespace compiler
1093 } // namespace internal 1093 } // namespace internal
1094 } // namespace v8 1094 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698