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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 Reducer* const reducer_; | 400 Reducer* const reducer_; |
401 SourcePositionTable* const table_; | 401 SourcePositionTable* const table_; |
402 | 402 |
403 DISALLOW_COPY_AND_ASSIGN(SourcePositionWrapper); | 403 DISALLOW_COPY_AND_ASSIGN(SourcePositionWrapper); |
404 }; | 404 }; |
405 | 405 |
406 | 406 |
407 class JSGraphReducer final : public GraphReducer { | 407 class JSGraphReducer final : public GraphReducer { |
408 public: | 408 public: |
409 JSGraphReducer(JSGraph* jsgraph, Zone* zone) | 409 JSGraphReducer(JSGraph* jsgraph, Zone* zone) |
410 : GraphReducer(zone, jsgraph->graph(), jsgraph->TheHoleConstant(), | 410 : GraphReducer(zone, jsgraph->graph(), jsgraph->DeadValue(), |
411 jsgraph->DeadControl()) {} | 411 jsgraph->DeadControl()) {} |
412 ~JSGraphReducer() final {} | 412 ~JSGraphReducer() final {} |
413 }; | 413 }; |
414 | 414 |
415 | 415 |
416 void AddReducer(PipelineData* data, GraphReducer* graph_reducer, | 416 void AddReducer(PipelineData* data, GraphReducer* graph_reducer, |
417 Reducer* reducer) { | 417 Reducer* reducer) { |
418 if (data->info()->is_source_positions_enabled()) { | 418 if (data->info()->is_source_positions_enabled()) { |
419 void* const buffer = data->graph_zone()->New(sizeof(SourcePositionWrapper)); | 419 void* const buffer = data->graph_zone()->New(sizeof(SourcePositionWrapper)); |
420 SourcePositionWrapper* const wrapper = | 420 SourcePositionWrapper* const wrapper = |
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1361 tcf << AsC1VRegisterAllocationData("CodeGen", | 1361 tcf << AsC1VRegisterAllocationData("CodeGen", |
1362 data->register_allocation_data()); | 1362 data->register_allocation_data()); |
1363 } | 1363 } |
1364 | 1364 |
1365 data->DeleteRegisterAllocationZone(); | 1365 data->DeleteRegisterAllocationZone(); |
1366 } | 1366 } |
1367 | 1367 |
1368 } // namespace compiler | 1368 } // namespace compiler |
1369 } // namespace internal | 1369 } // namespace internal |
1370 } // namespace v8 | 1370 } // namespace v8 |
OLD | NEW |