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 #ifndef V8_WASM_AST_DECODER_H_ | 5 #ifndef V8_WASM_AST_DECODER_H_ |
6 #define V8_WASM_AST_DECODER_H_ | 6 #define V8_WASM_AST_DECODER_H_ |
7 | 7 |
8 #include "src/signature.h" | 8 #include "src/signature.h" |
9 #include "src/wasm/decoder.h" | 9 #include "src/wasm/decoder.h" |
10 #include "src/wasm/wasm-opcodes.h" | 10 #include "src/wasm/wasm-opcodes.h" |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 return true; | 149 return true; |
150 case kLocalI64: | 150 case kLocalI64: |
151 *result = kAstI64; | 151 *result = kAstI64; |
152 return true; | 152 return true; |
153 case kLocalF32: | 153 case kLocalF32: |
154 *result = kAstF32; | 154 *result = kAstF32; |
155 return true; | 155 return true; |
156 case kLocalF64: | 156 case kLocalF64: |
157 *result = kAstF64; | 157 *result = kAstF64; |
158 return true; | 158 return true; |
| 159 case kLocalS128: |
| 160 *result = kAstS128; |
| 161 return true; |
159 default: | 162 default: |
160 *result = kAstStmt; | 163 *result = kAstStmt; |
161 return false; | 164 return false; |
162 } | 165 } |
163 } | 166 } |
164 LocalType read_entry(unsigned index) { | 167 LocalType read_entry(unsigned index) { |
165 DCHECK_LT(index, arity); | 168 DCHECK_LT(index, arity); |
166 LocalType result; | 169 LocalType result; |
167 CHECK(decode_local_type(types[index], &result)); | 170 CHECK(decode_local_type(types[index], &result)); |
168 return result; | 171 return result; |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 } | 413 } |
411 | 414 |
412 bool has_next() { return pc_ < end_; } | 415 bool has_next() { return pc_ < end_; } |
413 }; | 416 }; |
414 | 417 |
415 } // namespace wasm | 418 } // namespace wasm |
416 } // namespace internal | 419 } // namespace internal |
417 } // namespace v8 | 420 } // namespace v8 |
418 | 421 |
419 #endif // V8_WASM_AST_DECODER_H_ | 422 #endif // V8_WASM_AST_DECODER_H_ |
OLD | NEW |