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

Side by Side Diff: test/unittests/compiler/escape-analysis-unittest.cc

Issue 2082523002: [turbofan] Introduce CheckTaggedSigned and CheckTaggedPointer operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compile Created 4 years, 6 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/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
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
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
OLDNEW
« no previous file with comments | « test/unittests/compiler/common-operator-unittest.cc ('k') | test/unittests/compiler/instruction-selector-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698