| 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 data->set_compilation_failed(); | 489 data->set_compilation_failed(); |
| 490 } | 490 } |
| 491 } | 491 } |
| 492 }; | 492 }; |
| 493 | 493 |
| 494 | 494 |
| 495 struct ContextSpecializerPhase { | 495 struct ContextSpecializerPhase { |
| 496 static const char* phase_name() { return "context specializing"; } | 496 static const char* phase_name() { return "context specializing"; } |
| 497 | 497 |
| 498 void Run(PipelineData* data, Zone* temp_zone) { | 498 void Run(PipelineData* data, Zone* temp_zone) { |
| 499 JSContextSpecializer spec(data->jsgraph()); | |
| 500 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); | 499 JSGraphReducer graph_reducer(data->jsgraph(), temp_zone); |
| 500 JSContextSpecializer spec(&graph_reducer, data->jsgraph()); |
| 501 AddReducer(data, &graph_reducer, &spec); | 501 AddReducer(data, &graph_reducer, &spec); |
| 502 graph_reducer.ReduceGraph(); | 502 graph_reducer.ReduceGraph(); |
| 503 } | 503 } |
| 504 }; | 504 }; |
| 505 | 505 |
| 506 | 506 |
| 507 struct InliningPhase { | 507 struct InliningPhase { |
| 508 static const char* phase_name() { return "inlining"; } | 508 static const char* phase_name() { return "inlining"; } |
| 509 | 509 |
| 510 void Run(PipelineData* data, Zone* temp_zone) { | 510 void Run(PipelineData* data, Zone* temp_zone) { |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1329 tcf << AsC1VRegisterAllocationData("CodeGen", | 1329 tcf << AsC1VRegisterAllocationData("CodeGen", |
| 1330 data->register_allocation_data()); | 1330 data->register_allocation_data()); |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 data->DeleteRegisterAllocationZone(); | 1333 data->DeleteRegisterAllocationZone(); |
| 1334 } | 1334 } |
| 1335 | 1335 |
| 1336 } // namespace compiler | 1336 } // namespace compiler |
| 1337 } // namespace internal | 1337 } // namespace internal |
| 1338 } // namespace v8 | 1338 } // namespace v8 |
| OLD | NEW |