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

Unified Diff: src/compiler/pipeline.cc

Issue 899803003: Removed most of the bogus CompilationInfo constructor calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/linkage.cc ('k') | test/cctest/compiler/test-changes-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index 66be9b8fd49082976e37ca869f2f5877b34a7ac4..89d1b7361b59bef98dff3d3ef504e19b08d2e3ca 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -415,7 +415,7 @@ struct ContextSpecializerPhase {
void Run(PipelineData* data, Zone* temp_zone) {
SourcePositionTable::Scope pos(data->source_positions(),
SourcePosition::Unknown());
- JSContextSpecializer spec(data->info(), data->jsgraph(),
+ JSContextSpecializer spec(data->info()->context(), data->jsgraph(),
data->context_node());
GraphReducer graph_reducer(data->graph(), temp_zone);
AddReducer(data, &graph_reducer, &spec);
@@ -512,10 +512,9 @@ struct ChangeLoweringPhase {
void Run(PipelineData* data, Zone* temp_zone) {
SourcePositionTable::Scope pos(data->source_positions(),
SourcePosition::Unknown());
- Linkage linkage(data->graph_zone(), data->info());
ValueNumberingReducer vn_reducer(temp_zone);
SimplifiedOperatorReducer simple_reducer(data->jsgraph());
- ChangeLowering lowering(data->jsgraph(), &linkage);
+ ChangeLowering lowering(data->jsgraph());
MachineOperatorReducer machine_reducer(data->jsgraph());
CommonOperatorReducer common_reducer;
GraphReducer graph_reducer(data->graph(), temp_zone);
@@ -571,7 +570,8 @@ struct GenericLoweringPhase {
void Run(PipelineData* data, Zone* temp_zone) {
SourcePositionTable::Scope pos(data->source_positions(),
SourcePosition::Unknown());
- JSGenericLowering generic(data->info(), data->jsgraph());
+ JSGenericLowering generic(data->info()->is_typing_enabled(),
+ data->jsgraph());
SelectLowering select(data->jsgraph()->graph(), data->jsgraph()->common());
GraphReducer graph_reducer(data->graph(), temp_zone);
AddReducer(data, &graph_reducer, &generic);
@@ -954,7 +954,7 @@ Handle<Code> Pipeline::GenerateCode() {
{
// Generate optimized code.
- Linkage linkage(data.instruction_zone(), info());
+ Linkage linkage(Linkage::ComputeIncoming(data.instruction_zone(), info()));
GenerateCode(&linkage);
}
Handle<Code> code = data.code();
@@ -1026,7 +1026,7 @@ Handle<Code> Pipeline::GenerateCodeForTesting(CompilationInfo* info,
TraceSchedule(schedule);
}
- Linkage linkage(info->isolate(), info->zone(), call_descriptor);
+ Linkage linkage(call_descriptor);
pipeline.GenerateCode(&linkage);
Handle<Code> code = data.code();
« no previous file with comments | « src/compiler/linkage.cc ('k') | test/cctest/compiler/test-changes-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698