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

Side by Side Diff: src/compiler/control-reducer.cc

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 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/code-generator.cc ('k') | src/compiler/graph-builder.h » ('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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/control-reducer.h" 6 #include "src/compiler/control-reducer.h"
7 #include "src/compiler/graph.h" 7 #include "src/compiler/graph.h"
8 #include "src/compiler/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/node-marker.h" 9 #include "src/compiler/node-marker.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 556
557 void ControlReducer::TrimGraph(Zone* zone, JSGraph* jsgraph) { 557 void ControlReducer::TrimGraph(Zone* zone, JSGraph* jsgraph) {
558 ControlReducerImpl impl(zone, jsgraph, NULL); 558 ControlReducerImpl impl(zone, jsgraph, NULL);
559 impl.Trim(); 559 impl.Trim();
560 } 560 }
561 561
562 562
563 Node* ControlReducer::ReducePhiForTesting(JSGraph* jsgraph, 563 Node* ControlReducer::ReducePhiForTesting(JSGraph* jsgraph,
564 CommonOperatorBuilder* common, 564 CommonOperatorBuilder* common,
565 Node* node) { 565 Node* node) {
566 Zone zone(jsgraph->graph()->zone()->isolate()); 566 Zone zone;
567 ControlReducerImpl impl(&zone, jsgraph, common); 567 ControlReducerImpl impl(&zone, jsgraph, common);
568 return impl.ReducePhi(node); 568 return impl.ReducePhi(node);
569 } 569 }
570 570
571 571
572 Node* ControlReducer::ReduceMergeForTesting(JSGraph* jsgraph, 572 Node* ControlReducer::ReduceMergeForTesting(JSGraph* jsgraph,
573 CommonOperatorBuilder* common, 573 CommonOperatorBuilder* common,
574 Node* node) { 574 Node* node) {
575 Zone zone(jsgraph->graph()->zone()->isolate()); 575 Zone zone;
576 ControlReducerImpl impl(&zone, jsgraph, common); 576 ControlReducerImpl impl(&zone, jsgraph, common);
577 return impl.ReduceMerge(node); 577 return impl.ReduceMerge(node);
578 } 578 }
579 579
580 580
581 Node* ControlReducer::ReduceBranchForTesting(JSGraph* jsgraph, 581 Node* ControlReducer::ReduceBranchForTesting(JSGraph* jsgraph,
582 CommonOperatorBuilder* common, 582 CommonOperatorBuilder* common,
583 Node* node) { 583 Node* node) {
584 Zone zone(jsgraph->graph()->zone()->isolate()); 584 Zone zone;
585 ControlReducerImpl impl(&zone, jsgraph, common); 585 ControlReducerImpl impl(&zone, jsgraph, common);
586 return impl.ReduceBranch(node); 586 return impl.ReduceBranch(node);
587 } 587 }
588 } 588 }
589 } 589 }
590 } // namespace v8::internal::compiler 590 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/graph-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698