OLD | NEW |
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/v8.h" | 5 #include "src/v8.h" |
6 #include "test/cctest/cctest.h" | 6 #include "test/cctest/cctest.h" |
7 | 7 |
8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/generic-node-inl.h" | 9 #include "src/compiler/generic-node-inl.h" |
10 #include "src/compiler/generic-node.h" | 10 #include "src/compiler/generic-node.h" |
(...skipping 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1827 CHECK_NE(deopt_block, call_block); | 1827 CHECK_NE(deopt_block, call_block); |
1828 // The call node finishes its own basic block. | 1828 // The call node finishes its own basic block. |
1829 CHECK_EQ(BasicBlock::kCall, call_block->control_); | 1829 CHECK_EQ(BasicBlock::kCall, call_block->control_); |
1830 CHECK_EQ(call_node, call_block->control_input_); | 1830 CHECK_EQ(call_node, call_block->control_input_); |
1831 // The lazy deopt block is deferred. | 1831 // The lazy deopt block is deferred. |
1832 CHECK(deopt_block->deferred_); | 1832 CHECK(deopt_block->deferred_); |
1833 CHECK(!call_block->deferred_); | 1833 CHECK(!call_block->deferred_); |
1834 CHECK(!cont_block->deferred_); | 1834 CHECK(!cont_block->deferred_); |
1835 // The lazy deopt block contains framestate + bailout (and nothing else). | 1835 // The lazy deopt block contains framestate + bailout (and nothing else). |
1836 CHECK_EQ(deoptimization_node, deopt_block->control_input_); | 1836 CHECK_EQ(deoptimization_node, deopt_block->control_input_); |
1837 CHECK_EQ(2, deopt_block->nodes_.size()); | 1837 CHECK_EQ(2, static_cast<int>(deopt_block->nodes_.size())); |
1838 CHECK_EQ(lazy_deopt_node, deopt_block->nodes_[0]); | 1838 CHECK_EQ(lazy_deopt_node, deopt_block->nodes_[0]); |
1839 CHECK_EQ(state_node, deopt_block->nodes_[1]); | 1839 CHECK_EQ(state_node, deopt_block->nodes_[1]); |
1840 } | 1840 } |
OLD | NEW |