OLD | NEW |
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 "src/signature.h" | 5 #include "src/signature.h" |
6 | 6 |
7 #include "src/bit-vector.h" | 7 #include "src/bit-vector.h" |
8 #include "src/flags.h" | 8 #include "src/flags.h" |
9 #include "src/handles.h" | 9 #include "src/handles.h" |
10 #include "src/zone-containers.h" | 10 #include "src/zone-containers.h" |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 304 |
305 #define DECLARE_OPCODE_CASE(name, opcode, sig) \ | 305 #define DECLARE_OPCODE_CASE(name, opcode, sig) \ |
306 case kExpr##name: \ | 306 case kExpr##name: \ |
307 return kArity_##sig; | 307 return kArity_##sig; |
308 | 308 |
309 FOREACH_LOAD_MEM_OPCODE(DECLARE_OPCODE_CASE) | 309 FOREACH_LOAD_MEM_OPCODE(DECLARE_OPCODE_CASE) |
310 FOREACH_STORE_MEM_OPCODE(DECLARE_OPCODE_CASE) | 310 FOREACH_STORE_MEM_OPCODE(DECLARE_OPCODE_CASE) |
311 FOREACH_MISC_MEM_OPCODE(DECLARE_OPCODE_CASE) | 311 FOREACH_MISC_MEM_OPCODE(DECLARE_OPCODE_CASE) |
312 FOREACH_SIMPLE_OPCODE(DECLARE_OPCODE_CASE) | 312 FOREACH_SIMPLE_OPCODE(DECLARE_OPCODE_CASE) |
313 FOREACH_ASMJS_COMPAT_OPCODE(DECLARE_OPCODE_CASE) | 313 FOREACH_ASMJS_COMPAT_OPCODE(DECLARE_OPCODE_CASE) |
| 314 FOREACH_SIMD_OPCODE(DECLARE_OPCODE_CASE) |
314 #undef DECLARE_OPCODE_CASE | 315 #undef DECLARE_OPCODE_CASE |
315 default: | 316 default: |
316 UNREACHABLE(); | 317 UNREACHABLE(); |
317 return 0; | 318 return 0; |
318 } | 319 } |
319 } | 320 } |
320 | 321 |
321 int OpcodeLength(const byte* pc) { | 322 int OpcodeLength(const byte* pc) { |
322 switch (static_cast<WasmOpcode>(*pc)) { | 323 switch (static_cast<WasmOpcode>(*pc)) { |
323 #define DECLARE_OPCODE_CASE(name, opcode, sig) case kExpr##name: | 324 #define DECLARE_OPCODE_CASE(name, opcode, sig) case kExpr##name: |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1647 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, | 1648 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, |
1648 const byte* start, const byte* end) { | 1649 const byte* start, const byte* end) { |
1649 FunctionBody body = {nullptr, nullptr, nullptr, start, end}; | 1650 FunctionBody body = {nullptr, nullptr, nullptr, start, end}; |
1650 SR_WasmDecoder decoder(zone, nullptr, body); | 1651 SR_WasmDecoder decoder(zone, nullptr, body); |
1651 return decoder.AnalyzeLoopAssignmentForTesting(start, num_locals); | 1652 return decoder.AnalyzeLoopAssignmentForTesting(start, num_locals); |
1652 } | 1653 } |
1653 | 1654 |
1654 } // namespace wasm | 1655 } // namespace wasm |
1655 } // namespace internal | 1656 } // namespace internal |
1656 } // namespace v8 | 1657 } // namespace v8 |
OLD | NEW |