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

Side by Side Diff: test/unittests/compiler/change-lowering-unittest.cc

Issue 1709093002: [turbofan] Connect ObjectIsNumber to effect and control chains. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@move-change-low
Patch Set: Created 4 years, 10 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 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.h" 9 #include "src/compiler/node-properties.h"
10 #include "src/compiler/simplified-operator.h" 10 #include "src/compiler/simplified-operator.h"
(...skipping 24 matching lines...) Expand all
35 } 35 }
36 bool Is64() const { 36 bool Is64() const {
37 return WordRepresentation() == MachineRepresentation::kWord64; 37 return WordRepresentation() == MachineRepresentation::kWord64;
38 } 38 }
39 39
40 Reduction Reduce(Node* node) { 40 Reduction Reduce(Node* node) {
41 MachineOperatorBuilder machine(zone(), WordRepresentation()); 41 MachineOperatorBuilder machine(zone(), WordRepresentation());
42 JSOperatorBuilder javascript(zone()); 42 JSOperatorBuilder javascript(zone());
43 JSGraph jsgraph(isolate(), graph(), common(), &javascript, nullptr, 43 JSGraph jsgraph(isolate(), graph(), common(), &javascript, nullptr,
44 &machine); 44 &machine);
45 ChangeLowering reducer(&jsgraph); 45 GraphReducer graph_reducer(zone(), graph());
46 ChangeLowering reducer(&graph_reducer, &jsgraph);
46 return reducer.Reduce(node); 47 return reducer.Reduce(node);
47 } 48 }
48 49
49 SimplifiedOperatorBuilder* simplified() { return &simplified_; } 50 SimplifiedOperatorBuilder* simplified() { return &simplified_; }
50 51
51 Matcher<Node*> IsAllocateHeapNumber(const Matcher<Node*>& effect_matcher, 52 Matcher<Node*> IsAllocateHeapNumber(const Matcher<Node*>& effect_matcher,
52 const Matcher<Node*>& control_matcher) { 53 const Matcher<Node*>& control_matcher) {
53 return IsCall( 54 return IsCall(
54 _, IsHeapConstant(AllocateHeapNumberStub(isolate()).GetCode()), 55 _, IsHeapConstant(AllocateHeapNumberStub(isolate()).GetCode()),
55 IsNumberConstant(BitEq(0.0)), effect_matcher, control_matcher); 56 IsNumberConstant(BitEq(0.0)), effect_matcher, control_matcher);
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 CaptureEq(&branch), 620 CaptureEq(&branch),
620 IsBranch(IsUint32LessThanOrEqual( 621 IsBranch(IsUint32LessThanOrEqual(
621 value, IsInt32Constant(Smi::kMaxValue)), 622 value, IsInt32Constant(Smi::kMaxValue)),
622 graph()->start()))), 623 graph()->start()))),
623 AllOf(CaptureEq(&if_false), IsIfFalse(CaptureEq(&branch)))))); 624 AllOf(CaptureEq(&if_false), IsIfFalse(CaptureEq(&branch))))));
624 } 625 }
625 626
626 } // namespace compiler 627 } // namespace compiler
627 } // namespace internal 628 } // namespace internal
628 } // namespace v8 629 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-simplified-lowering.cc ('k') | test/unittests/compiler/simplified-operator-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698