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/wasm/module-decoder.h" | 5 #include "src/wasm/module-decoder.h" |
6 | 6 |
7 #include "src/base/functional.h" | 7 #include "src/base/functional.h" |
8 #include "src/base/platform/platform.h" | 8 #include "src/base/platform/platform.h" |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 #include "src/objects.h" | 10 #include "src/objects.h" |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 case kLocalVoid: | 627 case kLocalVoid: |
628 return kAstStmt; | 628 return kAstStmt; |
629 case kLocalI32: | 629 case kLocalI32: |
630 return kAstI32; | 630 return kAstI32; |
631 case kLocalI64: | 631 case kLocalI64: |
632 return kAstI64; | 632 return kAstI64; |
633 case kLocalF32: | 633 case kLocalF32: |
634 return kAstF32; | 634 return kAstF32; |
635 case kLocalF64: | 635 case kLocalF64: |
636 return kAstF64; | 636 return kAstF64; |
| 637 case kLocalS128: |
| 638 return kAstS128; |
637 default: | 639 default: |
638 error(pc_ - 1, "invalid local type"); | 640 error(pc_ - 1, "invalid local type"); |
639 return kAstStmt; | 641 return kAstStmt; |
640 } | 642 } |
641 } | 643 } |
642 | 644 |
643 // Parses a type entry, which is currently limited to functions only. | 645 // Parses a type entry, which is currently limited to functions only. |
644 FunctionSig* consume_sig() { | 646 FunctionSig* consume_sig() { |
645 const byte* pos = pc_; | 647 const byte* pos = pc_; |
646 byte form = consume_u8("type form"); | 648 byte form = consume_u8("type form"); |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 decoder.consume_bytes(size); | 813 decoder.consume_bytes(size); |
812 } | 814 } |
813 if (decoder.more()) decoder.error("unexpected additional bytes"); | 815 if (decoder.more()) decoder.error("unexpected additional bytes"); |
814 | 816 |
815 return decoder.toResult(std::move(table)); | 817 return decoder.toResult(std::move(table)); |
816 } | 818 } |
817 | 819 |
818 } // namespace wasm | 820 } // namespace wasm |
819 } // namespace internal | 821 } // namespace internal |
820 } // namespace v8 | 822 } // namespace v8 |
OLD | NEW |