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

Side by Side Diff: test/unittests/compiler/change-lowering-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
« no previous file with comments | « test/cctest/test-unique.cc ('k') | test/unittests/compiler/graph-unittest.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/code-stubs.h" 5 #include "src/code-stubs.h"
6 #include "src/compiler/change-lowering.h" 6 #include "src/compiler/change-lowering.h"
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 #include "src/compiler/simplified-operator.h" 10 #include "src/compiler/simplified-operator.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 : SmiTagging<8>::SmiShiftSize(); 59 : SmiTagging<8>::SmiShiftSize();
60 } 60 }
61 int SmiValueSize() const { 61 int SmiValueSize() const {
62 return Is32() ? SmiTagging<4>::SmiValueSize() 62 return Is32() ? SmiTagging<4>::SmiValueSize()
63 : SmiTagging<8>::SmiValueSize(); 63 : SmiTagging<8>::SmiValueSize();
64 } 64 }
65 65
66 Reduction Reduce(Node* node) { 66 Reduction Reduce(Node* node) {
67 MachineOperatorBuilder machine(zone(), WordRepresentation()); 67 MachineOperatorBuilder machine(zone(), WordRepresentation());
68 JSOperatorBuilder javascript(zone()); 68 JSOperatorBuilder javascript(zone());
69 JSGraph jsgraph(graph(), common(), &javascript, &machine); 69 JSGraph jsgraph(isolate(), graph(), common(), &javascript, &machine);
70 CompilationInfo info(isolate(), zone()); 70 CompilationInfo info(isolate(), zone());
71 Linkage linkage(zone(), &info); 71 Linkage linkage(zone(), &info);
72 ChangeLowering reducer(&jsgraph, &linkage); 72 ChangeLowering reducer(&jsgraph, &linkage);
73 return reducer.Reduce(node); 73 return reducer.Reduce(node);
74 } 74 }
75 75
76 SimplifiedOperatorBuilder* simplified() { return &simplified_; } 76 SimplifiedOperatorBuilder* simplified() { return &simplified_; }
77 77
78 Matcher<Node*> IsAllocateHeapNumber(const Matcher<Node*>& effect_matcher, 78 Matcher<Node*> IsAllocateHeapNumber(const Matcher<Node*>& effect_matcher,
79 const Matcher<Node*>& control_matcher) { 79 const Matcher<Node*>& control_matcher) {
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 IsIfTrue(AllOf(CaptureEq(&branch), 454 IsIfTrue(AllOf(CaptureEq(&branch),
455 IsBranch(IsUint32LessThanOrEqual( 455 IsBranch(IsUint32LessThanOrEqual(
456 val, IsInt32Constant(SmiMaxValue())), 456 val, IsInt32Constant(SmiMaxValue())),
457 graph()->start()))), 457 graph()->start()))),
458 AllOf(CaptureEq(&if_false), IsIfFalse(CaptureEq(&branch)))))); 458 AllOf(CaptureEq(&if_false), IsIfFalse(CaptureEq(&branch))))));
459 } 459 }
460 460
461 } // namespace compiler 461 } // namespace compiler
462 } // namespace internal 462 } // namespace internal
463 } // namespace v8 463 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/test-unique.cc ('k') | test/unittests/compiler/graph-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698