Chromium Code Reviews| Index: src/compiler/pipeline.cc |
| diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc |
| index 52b30dd6ecd4c12a36b360d18d07e44b74b25192..5a10b0caaff97b79be0bc0c615360f34fc7109bd 100644 |
| --- a/src/compiler/pipeline.cc |
| +++ b/src/compiler/pipeline.cc |
| @@ -882,6 +882,9 @@ struct TypedLoweringPhase { |
| if (data->info()->shared_info()->HasBytecodeArray()) { |
| typed_lowering_flags |= JSTypedLowering::kDisableBinaryOpReduction; |
| } |
| + if (FLAG_turbo_type_feedback) { |
|
Benedikt Meurer
2016/05/30 18:39:50
Can you add a CompilationInfo flag for this?
Jarin
2016/05/31 20:28:53
Done.
|
| + typed_lowering_flags |= JSTypedLowering::kTypeFeedbackEnabled; |
| + } |
| JSTypedLowering typed_lowering(&graph_reducer, data->info()->dependencies(), |
| typed_lowering_flags, data->jsgraph(), |
| temp_zone); |
| @@ -944,8 +947,11 @@ struct RepresentationSelectionPhase { |
| static const char* phase_name() { return "representation selection"; } |
| void Run(PipelineData* data, Zone* temp_zone) { |
| + SimplifiedLowering::Flags flags = |
| + FLAG_turbo_type_feedback ? SimplifiedLowering::kTypeFeedbackEnabled |
|
Benedikt Meurer
2016/05/30 18:39:50
See comment above.
|
| + : SimplifiedLowering::kNoFlag; |
| SimplifiedLowering lowering(data->jsgraph(), temp_zone, |
| - data->source_positions()); |
| + data->source_positions(), flags); |
| lowering.LowerAllNodes(); |
| } |
| }; |