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 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 | 532 |
533 struct InliningPhase { | 533 struct InliningPhase { |
534 static const char* phase_name() { return "inlining"; } | 534 static const char* phase_name() { return "inlining"; } |
535 | 535 |
536 void Run(PipelineData* data, Zone* temp_zone) { | 536 void Run(PipelineData* data, Zone* temp_zone) { |
537 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 537 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
538 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), | 538 DeadCodeElimination dead_code_elimination(&graph_reducer, data->graph(), |
539 data->common()); | 539 data->common()); |
540 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), | 540 CommonOperatorReducer common_reducer(&graph_reducer, data->graph(), |
541 data->common(), data->machine()); | 541 data->common(), data->machine()); |
542 JSCallReducer call_reducer(&graph_reducer, data->jsgraph(), | 542 JSCallReducer call_reducer(data->jsgraph(), |
543 data->info()->is_deoptimization_enabled() | 543 data->info()->is_deoptimization_enabled() |
544 ? JSCallReducer::kDeoptimizationEnabled | 544 ? JSCallReducer::kDeoptimizationEnabled |
545 : JSCallReducer::kNoFlags, | 545 : JSCallReducer::kNoFlags, |
546 data->native_context()); | 546 data->native_context()); |
547 JSContextSpecialization context_specialization( | 547 JSContextSpecialization context_specialization( |
548 &graph_reducer, data->jsgraph(), | 548 &graph_reducer, data->jsgraph(), |
549 data->info()->is_function_context_specializing() | 549 data->info()->is_function_context_specializing() |
550 ? data->info()->context() | 550 ? data->info()->context() |
551 : MaybeHandle<Context>()); | 551 : MaybeHandle<Context>()); |
552 JSFrameSpecialization frame_specialization(data->info()->osr_frame(), | 552 JSFrameSpecialization frame_specialization(data->info()->osr_frame(), |
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 } | 1502 } |
1503 | 1503 |
1504 data->DeleteRegisterAllocationZone(); | 1504 data->DeleteRegisterAllocationZone(); |
1505 } | 1505 } |
1506 | 1506 |
1507 Isolate* Pipeline::isolate() const { return info()->isolate(); } | 1507 Isolate* Pipeline::isolate() const { return info()->isolate(); } |
1508 | 1508 |
1509 } // namespace compiler | 1509 } // namespace compiler |
1510 } // namespace internal | 1510 } // namespace internal |
1511 } // namespace v8 | 1511 } // namespace v8 |
OLD | NEW |