OLD | NEW |
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/diamond.h" | 6 #include "src/compiler/diamond.h" |
7 #include "src/compiler/js-graph.h" | 7 #include "src/compiler/js-graph.h" |
8 #include "src/compiler/js-intrinsic-lowering.h" | 8 #include "src/compiler/js-intrinsic-lowering.h" |
9 #include "src/compiler/js-operator.h" | 9 #include "src/compiler/js-operator.h" |
10 #include "test/unittests/compiler/graph-unittest.h" | 10 #include "test/unittests/compiler/graph-unittest.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 SimplifiedOperatorBuilder simplified(zone()); | 36 SimplifiedOperatorBuilder simplified(zone()); |
37 JSGraph jsgraph(isolate(), graph(), common(), javascript(), &simplified, | 37 JSGraph jsgraph(isolate(), graph(), common(), javascript(), &simplified, |
38 &machine); | 38 &machine); |
39 // TODO(titzer): mock the GraphReducer here for better unit testing. | 39 // TODO(titzer): mock the GraphReducer here for better unit testing. |
40 GraphReducer graph_reducer(zone(), graph()); | 40 GraphReducer graph_reducer(zone(), graph()); |
41 JSIntrinsicLowering reducer(&graph_reducer, &jsgraph, | 41 JSIntrinsicLowering reducer(&graph_reducer, &jsgraph, |
42 JSIntrinsicLowering::kDeoptimizationEnabled); | 42 JSIntrinsicLowering::kDeoptimizationEnabled); |
43 return reducer.Reduce(node); | 43 return reducer.Reduce(node); |
44 } | 44 } |
45 | 45 |
46 Node* EmptyFrameState() { | |
47 MachineOperatorBuilder machine(zone()); | |
48 JSGraph jsgraph(isolate(), graph(), common(), javascript(), nullptr, | |
49 &machine); | |
50 return jsgraph.EmptyFrameState(); | |
51 } | |
52 | |
53 JSOperatorBuilder* javascript() { return &javascript_; } | 46 JSOperatorBuilder* javascript() { return &javascript_; } |
54 | 47 |
55 private: | 48 private: |
56 JSOperatorBuilder javascript_; | 49 JSOperatorBuilder javascript_; |
57 }; | 50 }; |
58 | 51 |
59 | 52 |
60 // ----------------------------------------------------------------------------- | 53 // ----------------------------------------------------------------------------- |
61 // %_ConstructDouble | 54 // %_ConstructDouble |
62 | 55 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 CaptureEq(&if_false0)))))), | 273 CaptureEq(&if_false0)))))), |
281 IsMerge( | 274 IsMerge( |
282 IsIfTrue(AllOf(CaptureEq(&branch0), | 275 IsIfTrue(AllOf(CaptureEq(&branch0), |
283 IsBranch(IsObjectIsSmi(input), control))), | 276 IsBranch(IsObjectIsSmi(input), control))), |
284 AllOf(CaptureEq(&if_false0), IsIfFalse(CaptureEq(&branch0)))))); | 277 AllOf(CaptureEq(&if_false0), IsIfFalse(CaptureEq(&branch0)))))); |
285 } | 278 } |
286 | 279 |
287 } // namespace compiler | 280 } // namespace compiler |
288 } // namespace internal | 281 } // namespace internal |
289 } // namespace v8 | 282 } // namespace v8 |
OLD | NEW |