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

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

Issue 802353003: [turbofan] Cache conversions inserted during typed lowering. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Use temp zone. Add missing ToNumber conversion. Created 6 years 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/js-typed-lowering.cc ('k') | test/cctest/compiler/test-js-typed-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/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 412
413 struct TypedLoweringPhase { 413 struct TypedLoweringPhase {
414 static const char* phase_name() { return "typed lowering"; } 414 static const char* phase_name() { return "typed lowering"; }
415 415
416 void Run(PipelineData* data, Zone* temp_zone) { 416 void Run(PipelineData* data, Zone* temp_zone) {
417 SourcePositionTable::Scope pos(data->source_positions(), 417 SourcePositionTable::Scope pos(data->source_positions(),
418 SourcePosition::Unknown()); 418 SourcePosition::Unknown());
419 ValueNumberingReducer vn_reducer(temp_zone); 419 ValueNumberingReducer vn_reducer(temp_zone);
420 LoadElimination load_elimination; 420 LoadElimination load_elimination;
421 JSBuiltinReducer builtin_reducer(data->jsgraph()); 421 JSBuiltinReducer builtin_reducer(data->jsgraph());
422 JSTypedLowering typed_lowering(data->jsgraph()); 422 JSTypedLowering typed_lowering(data->jsgraph(), temp_zone);
423 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); 423 SimplifiedOperatorReducer simple_reducer(data->jsgraph());
424 GraphReducer graph_reducer(data->graph(), temp_zone); 424 GraphReducer graph_reducer(data->graph(), temp_zone);
425 graph_reducer.AddReducer(&vn_reducer); 425 graph_reducer.AddReducer(&vn_reducer);
426 graph_reducer.AddReducer(&builtin_reducer); 426 graph_reducer.AddReducer(&builtin_reducer);
427 graph_reducer.AddReducer(&typed_lowering); 427 graph_reducer.AddReducer(&typed_lowering);
428 graph_reducer.AddReducer(&load_elimination); 428 graph_reducer.AddReducer(&load_elimination);
429 graph_reducer.AddReducer(&simple_reducer); 429 graph_reducer.AddReducer(&simple_reducer);
430 graph_reducer.ReduceGraph(); 430 graph_reducer.ReduceGraph();
431 } 431 }
432 }; 432 };
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 } 1077 }
1078 1078
1079 1079
1080 void Pipeline::TearDown() { 1080 void Pipeline::TearDown() {
1081 InstructionOperand::TearDownCaches(); 1081 InstructionOperand::TearDownCaches();
1082 } 1082 }
1083 1083
1084 } // namespace compiler 1084 } // namespace compiler
1085 } // namespace internal 1085 } // namespace internal
1086 } // namespace v8 1086 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/cctest/compiler/test-js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698