OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/wasm/switch-logic.h" | 5 #include "src/asmjs/switch-logic.h" |
6 #include "test/unittests/test-utils.h" | 6 #include "test/unittests/test-utils.h" |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 namespace wasm { | 10 namespace wasm { |
11 class SwitchLogicTest : public TestWithZone {}; | 11 class SwitchLogicTest : public TestWithZone {}; |
12 | 12 |
13 void CheckNodeValues(CaseNode* node, int begin, int end) { | 13 void CheckNodeValues(CaseNode* node, int begin, int end) { |
14 CHECK_EQ(node->begin, begin); | 14 CHECK_EQ(node->begin, begin); |
15 CHECK_EQ(node->end, end); | 15 CHECK_EQ(node->end, end); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 TEST_F(SwitchLogicTest, Empty_Case) { | 81 TEST_F(SwitchLogicTest, Empty_Case) { |
82 ZoneVector<int> values(zone()); | 82 ZoneVector<int> values(zone()); |
83 CaseNode* root = OrderCases(&values, zone()); | 83 CaseNode* root = OrderCases(&values, zone()); |
84 CHECK_NULL(root); | 84 CHECK_NULL(root); |
85 } | 85 } |
86 | 86 |
87 } // namespace wasm | 87 } // namespace wasm |
88 } // namespace internal | 88 } // namespace internal |
89 } // namespace v8 | 89 } // namespace v8 |
OLD | NEW |