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

Side by Side Diff: test/unittests/wasm/switch-logic-unittest.cc

Issue 2408823002: [asmjs] Move switch-logic.h to asmjs/ directory. (Closed)
Patch Set: [asmjs] Move switch-logic.h to asmjs/ directory. Created 4 years, 2 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 | « src/wasm/switch-logic.cc ('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 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
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
OLDNEW
« no previous file with comments | « src/wasm/switch-logic.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698