OLD | NEW |
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 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 | 554 |
555 | 555 |
556 struct TypedLoweringPhase { | 556 struct TypedLoweringPhase { |
557 static const char* phase_name() { return "typed lowering"; } | 557 static const char* phase_name() { return "typed lowering"; } |
558 | 558 |
559 void Run(PipelineData* data, Zone* temp_zone) { | 559 void Run(PipelineData* data, Zone* temp_zone) { |
560 GraphReducer graph_reducer(data->graph(), temp_zone); | 560 GraphReducer graph_reducer(data->graph(), temp_zone); |
561 LoadElimination load_elimination; | 561 LoadElimination load_elimination; |
562 JSBuiltinReducer builtin_reducer(data->jsgraph()); | 562 JSBuiltinReducer builtin_reducer(data->jsgraph()); |
563 JSTypedLowering typed_lowering(&graph_reducer, data->jsgraph(), temp_zone); | 563 JSTypedLowering typed_lowering(&graph_reducer, data->jsgraph(), temp_zone); |
564 JSIntrinsicLowering intrinsic_lowering(&graph_reducer, data->jsgraph()); | 564 JSIntrinsicLowering intrinsic_lowering( |
| 565 &graph_reducer, data->jsgraph(), |
| 566 data->info()->is_deoptimization_enabled() |
| 567 ? JSIntrinsicLowering::kDeoptimizationEnabled |
| 568 : JSIntrinsicLowering::kDeoptimizationDisabled); |
565 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); | 569 SimplifiedOperatorReducer simple_reducer(data->jsgraph()); |
566 CommonOperatorReducer common_reducer(data->jsgraph()); | 570 CommonOperatorReducer common_reducer(data->jsgraph()); |
567 AddReducer(data, &graph_reducer, &builtin_reducer); | 571 AddReducer(data, &graph_reducer, &builtin_reducer); |
568 AddReducer(data, &graph_reducer, &typed_lowering); | 572 AddReducer(data, &graph_reducer, &typed_lowering); |
569 AddReducer(data, &graph_reducer, &intrinsic_lowering); | 573 AddReducer(data, &graph_reducer, &intrinsic_lowering); |
570 AddReducer(data, &graph_reducer, &load_elimination); | 574 AddReducer(data, &graph_reducer, &load_elimination); |
571 AddReducer(data, &graph_reducer, &simple_reducer); | 575 AddReducer(data, &graph_reducer, &simple_reducer); |
572 AddReducer(data, &graph_reducer, &common_reducer); | 576 AddReducer(data, &graph_reducer, &common_reducer); |
573 graph_reducer.ReduceGraph(); | 577 graph_reducer.ReduceGraph(); |
574 } | 578 } |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1323 tcf << AsC1VRegisterAllocationData("CodeGen", | 1327 tcf << AsC1VRegisterAllocationData("CodeGen", |
1324 data->register_allocation_data()); | 1328 data->register_allocation_data()); |
1325 } | 1329 } |
1326 | 1330 |
1327 data->DeleteRegisterAllocationZone(); | 1331 data->DeleteRegisterAllocationZone(); |
1328 } | 1332 } |
1329 | 1333 |
1330 } // namespace compiler | 1334 } // namespace compiler |
1331 } // namespace internal | 1335 } // namespace internal |
1332 } // namespace v8 | 1336 } // namespace v8 |
OLD | NEW |