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

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

Issue 2363573003: [turbofan] Add proper type guards to escape analysis. (Closed)
Patch Set: Better comment. Created 4 years, 3 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/mjsunit/regress/regress-crbug-640497.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/compiler/escape-analysis.h" 5 #include "src/compiler/escape-analysis.h"
6 #include "src/bit-vector.h" 6 #include "src/bit-vector.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"
11 #include "src/compiler/simplified-operator.h" 11 #include "src/compiler/simplified-operator.h"
12 #include "src/compiler/types.h" 12 #include "src/compiler/types.h"
13 #include "src/zone/zone-containers.h" 13 #include "src/zone/zone-containers.h"
14 #include "test/unittests/compiler/graph-unittest.h" 14 #include "test/unittests/compiler/graph-unittest.h"
15 15
16 namespace v8 { 16 namespace v8 {
17 namespace internal { 17 namespace internal {
18 namespace compiler { 18 namespace compiler {
19 19
20 class EscapeAnalysisTest : public GraphTest { 20 class EscapeAnalysisTest : public TypedGraphTest {
21 public: 21 public:
22 EscapeAnalysisTest() 22 EscapeAnalysisTest()
23 : simplified_(zone()), 23 : simplified_(zone()),
24 jsgraph_(isolate(), graph(), common(), nullptr, nullptr, nullptr), 24 jsgraph_(isolate(), graph(), common(), nullptr, nullptr, nullptr),
25 escape_analysis_(graph(), common(), zone()), 25 escape_analysis_(graph(), common(), zone()),
26 effect_(graph()->start()), 26 effect_(graph()->start()),
27 control_(graph()->start()) {} 27 control_(graph()->start()) {}
28 28
29 ~EscapeAnalysisTest() {} 29 ~EscapeAnalysisTest() {}
30 30
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
509 ASSERT_EQ(object1, NodeProperties::GetValueInput(object_state, 0)); 509 ASSERT_EQ(object1, NodeProperties::GetValueInput(object_state, 0));
510 ASSERT_EQ(object_state, NodeProperties::GetValueInput(object_state, 1)); 510 ASSERT_EQ(object_state, NodeProperties::GetValueInput(object_state, 1));
511 511
512 Node* object_state2 = NodeProperties::GetValueInput(state_values1, 0); 512 Node* object_state2 = NodeProperties::GetValueInput(state_values1, 0);
513 ASSERT_EQ(object_state, object_state2); 513 ASSERT_EQ(object_state, object_state2);
514 } 514 }
515 515
516 } // namespace compiler 516 } // namespace compiler
517 } // namespace internal 517 } // namespace internal
518 } // namespace v8 518 } // namespace v8
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-crbug-640497.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698