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

Side by Side Diff: test/unittests/compiler/loop-peeling-unittest.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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/access-builder.h" 5 #include "src/compiler/access-builder.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/graph-visualizer.h" 7 #include "src/compiler/graph-visualizer.h"
8 #include "src/compiler/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/loop-peeling.h" 9 #include "src/compiler/loop-peeling.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 protected: 57 protected:
58 MachineOperatorBuilder machine_; 58 MachineOperatorBuilder machine_;
59 59
60 MachineOperatorBuilder* machine() { return &machine_; } 60 MachineOperatorBuilder* machine() { return &machine_; }
61 61
62 LoopTree* GetLoopTree() { 62 LoopTree* GetLoopTree() {
63 if (FLAG_trace_turbo_graph) { 63 if (FLAG_trace_turbo_graph) {
64 OFStream os(stdout); 64 OFStream os(stdout);
65 os << AsRPO(*graph()); 65 os << AsRPO(*graph());
66 } 66 }
67 Zone zone(isolate()); 67 Zone zone;
68 return LoopFinder::BuildLoopTree(graph(), &zone); 68 return LoopFinder::BuildLoopTree(graph(), &zone);
69 } 69 }
70 70
71 71
72 PeeledIteration* PeelOne() { 72 PeeledIteration* PeelOne() {
73 LoopTree* loop_tree = GetLoopTree(); 73 LoopTree* loop_tree = GetLoopTree();
74 return Peel(loop_tree, loop_tree->outer_loops()[0]); 74 return Peel(loop_tree, loop_tree->outer_loops()[0]);
75 } 75 }
76 76
77 PeeledIteration* Peel(LoopTree* loop_tree, LoopTree::Loop* loop) { 77 PeeledIteration* Peel(LoopTree* loop_tree, LoopTree::Loop* loop) {
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 EXPECT_THAT( 442 EXPECT_THAT(
443 r, IsReturn(IsPhi(kMachAnyTagged, phi, IsInt32Constant(0), 443 r, IsReturn(IsPhi(kMachAnyTagged, phi, IsInt32Constant(0),
444 AllOf(CaptureEq(&merge), IsMerge(b1.if_false, b1f))), 444 AllOf(CaptureEq(&merge), IsMerge(b1.if_false, b1f))),
445 start(), CaptureEq(&merge))); 445 start(), CaptureEq(&merge)));
446 } 446 }
447 447
448 448
449 } // namespace compiler 449 } // namespace compiler
450 } // namespace internal 450 } // namespace internal
451 } // namespace v8 451 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/compiler/js-typed-lowering-unittest.cc ('k') | test/unittests/compiler/machine-operator-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698