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 #include "src/wasm/function-body-decoder-impl.h" | 6 #include "src/wasm/function-body-decoder-impl.h" |
7 | 7 |
8 #include "src/base/functional.h" | 8 #include "src/base/functional.h" |
9 #include "src/base/platform/platform.h" | 9 #include "src/base/platform/platform.h" |
10 #include "src/counters.h" | 10 #include "src/counters.h" |
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 return kWasmI64; | 1161 return kWasmI64; |
1162 case kLocalF32: | 1162 case kLocalF32: |
1163 return kWasmF32; | 1163 return kWasmF32; |
1164 case kLocalF64: | 1164 case kLocalF64: |
1165 return kWasmF64; | 1165 return kWasmF64; |
1166 default: | 1166 default: |
1167 if (origin_ != kAsmJsOrigin && FLAG_experimental_wasm_simd) { | 1167 if (origin_ != kAsmJsOrigin && FLAG_experimental_wasm_simd) { |
1168 switch (t) { | 1168 switch (t) { |
1169 case kLocalS128: | 1169 case kLocalS128: |
1170 return kWasmS128; | 1170 return kWasmS128; |
1171 case kLocalS1x4: | |
1172 return kWasmS1x4; | |
1173 case kLocalS1x8: | |
1174 return kWasmS1x8; | |
1175 case kLocalS1x16: | |
1176 return kWasmS1x16; | |
1177 default: | 1171 default: |
1178 break; | 1172 break; |
1179 } | 1173 } |
1180 } | 1174 } |
1181 error(pc_ - 1, "invalid local type"); | 1175 error(pc_ - 1, "invalid local type"); |
1182 return kWasmStmt; | 1176 return kWasmStmt; |
1183 } | 1177 } |
1184 } | 1178 } |
1185 | 1179 |
1186 // Parses a type entry, which is currently limited to functions only. | 1180 // Parses a type entry, which is currently limited to functions only. |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1412 result.push_back({section_start, name_offset, name_length, payload_offset, | 1406 result.push_back({section_start, name_offset, name_length, payload_offset, |
1413 payload_length, section_length}); | 1407 payload_length, section_length}); |
1414 } | 1408 } |
1415 | 1409 |
1416 return result; | 1410 return result; |
1417 } | 1411 } |
1418 | 1412 |
1419 } // namespace wasm | 1413 } // namespace wasm |
1420 } // namespace internal | 1414 } // namespace internal |
1421 } // namespace v8 | 1415 } // namespace v8 |
OLD | NEW |