Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(507)

Side by Side Diff: src/compiler/pipeline.cc

Issue 1186033006: [turbofan] Introduce DeadValue and DeadEffect operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/operator-properties.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/operator-properties.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698