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/bit-vector.h" | 5 #include "src/bit-vector.h" |
6 #include "src/compiler/escape-analysis.h" | 6 #include "src/compiler/escape-analysis.h" |
7 #include "src/compiler/escape-analysis-reducer.h" | 7 #include "src/compiler/escape-analysis-reducer.h" |
8 #include "src/compiler/graph-visualizer.h" | 8 #include "src/compiler/graph-visualizer.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 30 matching lines...) Expand all Loading... |
41 graph_reducer.ReduceGraph(); | 41 graph_reducer.ReduceGraph(); |
42 } | 42 } |
43 | 43 |
44 // ---------------------------------Node Creation Helper---------------------- | 44 // ---------------------------------Node Creation Helper---------------------- |
45 | 45 |
46 Node* BeginRegion(Node* effect = nullptr) { | 46 Node* BeginRegion(Node* effect = nullptr) { |
47 if (!effect) { | 47 if (!effect) { |
48 effect = effect_; | 48 effect = effect_; |
49 } | 49 } |
50 | 50 |
51 return effect_ = graph()->NewNode(common()->BeginRegion(), effect); | 51 return effect_ = graph()->NewNode( |
| 52 common()->BeginRegion(RegionObservability::kObservable), effect); |
52 } | 53 } |
53 | 54 |
54 Node* FinishRegion(Node* value, Node* effect = nullptr) { | 55 Node* FinishRegion(Node* value, Node* effect = nullptr) { |
55 if (!effect) { | 56 if (!effect) { |
56 effect = effect_; | 57 effect = effect_; |
57 } | 58 } |
58 return effect_ = graph()->NewNode(common()->FinishRegion(), value, effect); | 59 return effect_ = graph()->NewNode(common()->FinishRegion(), value, effect); |
59 } | 60 } |
60 | 61 |
61 Node* Allocate(Node* size, Node* effect = nullptr, Node* control = nullptr) { | 62 Node* Allocate(Node* size, Node* effect = nullptr, Node* control = nullptr) { |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 ASSERT_EQ(object1, NodeProperties::GetValueInput(object_state, 0)); | 508 ASSERT_EQ(object1, NodeProperties::GetValueInput(object_state, 0)); |
508 ASSERT_EQ(object_state, NodeProperties::GetValueInput(object_state, 1)); | 509 ASSERT_EQ(object_state, NodeProperties::GetValueInput(object_state, 1)); |
509 | 510 |
510 Node* object_state2 = NodeProperties::GetValueInput(state_values1, 0); | 511 Node* object_state2 = NodeProperties::GetValueInput(state_values1, 0); |
511 ASSERT_EQ(object_state, object_state2); | 512 ASSERT_EQ(object_state, object_state2); |
512 } | 513 } |
513 | 514 |
514 } // namespace compiler | 515 } // namespace compiler |
515 } // namespace internal | 516 } // namespace internal |
516 } // namespace v8 | 517 } // namespace v8 |
OLD | NEW |