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 "test/unittests/test-utils.h" | 5 #include "test/unittests/test-utils.h" |
6 | 6 |
| 7 #include "src/objects-inl.h" |
7 #include "src/wasm/decoder.h" | 8 #include "src/wasm/decoder.h" |
8 #include "src/wasm/leb-helper.h" | 9 #include "src/wasm/leb-helper.h" |
9 | 10 |
10 namespace v8 { | 11 namespace v8 { |
11 namespace internal { | 12 namespace internal { |
12 namespace wasm { | 13 namespace wasm { |
13 | 14 |
14 class LEBHelperTest : public TestWithZone {}; | 15 class LEBHelperTest : public TestWithZone {}; |
15 | 16 |
16 TEST_F(LEBHelperTest, sizeof_u32v) { | 17 TEST_F(LEBHelperTest, sizeof_u32v) { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 CheckEncodeDecode_i64v(bit_cast<int64_t>(val)); | 182 CheckEncodeDecode_i64v(bit_cast<int64_t>(val)); |
182 } | 183 } |
183 | 184 |
184 for (uint64_t val = 0xFFFFFFFFFFFFFF3B; val != 0; val = val << 1) { | 185 for (uint64_t val = 0xFFFFFFFFFFFFFF3B; val != 0; val = val << 1) { |
185 CheckEncodeDecode_i64v(bit_cast<int64_t>(val)); | 186 CheckEncodeDecode_i64v(bit_cast<int64_t>(val)); |
186 } | 187 } |
187 } | 188 } |
188 } // namespace wasm | 189 } // namespace wasm |
189 } // namespace internal | 190 } // namespace internal |
190 } // namespace v8 | 191 } // namespace v8 |
OLD | NEW |