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

Side by Side Diff: test/unittests/wasm/function-body-decoder-unittest.cc

Issue 2619063002: s390: Fix FunctionBodyDecoderTest to compile with gcc4.8.5 (Closed)
Patch Set: removed unnecessary parenthesis Created 3 years, 11 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 | « no previous file | 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 "test/unittests/test-utils.h" 5 #include "test/unittests/test-utils.h"
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "test/common/wasm/test-signatures.h" 9 #include "test/common/wasm/test-signatures.h"
10 10
(...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after
1847 } 1847 }
1848 1848
1849 TEST_F(FunctionBodyDecoderTest, BreakNesting_6_levels) { 1849 TEST_F(FunctionBodyDecoderTest, BreakNesting_6_levels) {
1850 for (int mask = 0; mask < 64; mask++) { 1850 for (int mask = 0; mask < 64; mask++) {
1851 for (int i = 0; i < 14; i++) { 1851 for (int i = 0; i < 14; i++) {
1852 byte code[] = {WASM_BLOCK(WASM_BLOCK( 1852 byte code[] = {WASM_BLOCK(WASM_BLOCK(
1853 WASM_BLOCK(WASM_BLOCK(WASM_BLOCK(WASM_BLOCK(WASM_BR(i)))))))}; 1853 WASM_BLOCK(WASM_BLOCK(WASM_BLOCK(WASM_BLOCK(WASM_BR(i)))))))};
1854 1854
1855 int depth = 6; 1855 int depth = 6;
1856 int m = mask; 1856 int m = mask;
1857 for (size_t pos = 0; pos < sizeof(code); pos++) { 1857 for (size_t pos = 0; pos < sizeof(code) - 1; pos++) {
1858 if (code[pos] != kExprBlock) continue; 1858 if (code[pos] != kExprBlock) continue;
1859 if (m & 1) { 1859 if (m & 1) {
1860 code[pos] = kExprLoop; 1860 code[pos] = kExprLoop;
1861 code[pos + 1] = kLocalVoid; 1861 code[pos + 1] = kLocalVoid;
1862 } 1862 }
1863 m >>= 1; 1863 m >>= 1;
1864 } 1864 }
1865 1865
1866 if (i <= depth) { 1866 if (i <= depth) {
1867 EXPECT_VERIFIES_C(v_v, code); 1867 EXPECT_VERIFIES_C(v_v, code);
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after
2736 iter.next(); 2736 iter.next();
2737 EXPECT_TRUE(iter.has_next()); 2737 EXPECT_TRUE(iter.has_next());
2738 EXPECT_EQ(kExprI8Const, iter.current()); 2738 EXPECT_EQ(kExprI8Const, iter.current());
2739 iter.next(); 2739 iter.next();
2740 EXPECT_FALSE(iter.has_next()); 2740 EXPECT_FALSE(iter.has_next());
2741 } 2741 }
2742 2742
2743 } // namespace wasm 2743 } // namespace wasm
2744 } // namespace internal 2744 } // namespace internal
2745 } // namespace v8 2745 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698