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/base/platform/elapsed-timer.h" | 7 #include "src/base/platform/elapsed-timer.h" |
8 #include "src/bit-vector.h" | 8 #include "src/bit-vector.h" |
9 #include "src/flags.h" | 9 #include "src/flags.h" |
10 #include "src/handles.h" | 10 #include "src/handles.h" |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 break; | 208 break; |
209 case kLocalF32: | 209 case kLocalF32: |
210 type = kWasmF32; | 210 type = kWasmF32; |
211 break; | 211 break; |
212 case kLocalF64: | 212 case kLocalF64: |
213 type = kWasmF64; | 213 type = kWasmF64; |
214 break; | 214 break; |
215 case kLocalS128: | 215 case kLocalS128: |
216 type = kWasmS128; | 216 type = kWasmS128; |
217 break; | 217 break; |
| 218 case kLocalS1x4: |
| 219 type = kWasmS1x4; |
| 220 break; |
| 221 case kLocalS1x8: |
| 222 type = kWasmS1x8; |
| 223 break; |
| 224 case kLocalS1x16: |
| 225 type = kWasmS1x16; |
| 226 break; |
218 default: | 227 default: |
219 decoder->error(decoder->pc() - 1, "invalid local type"); | 228 decoder->error(decoder->pc() - 1, "invalid local type"); |
220 return false; | 229 return false; |
221 } | 230 } |
222 type_list->insert(type_list->end(), count, type); | 231 type_list->insert(type_list->end(), count, type); |
223 } | 232 } |
224 DCHECK(decoder->ok()); | 233 DCHECK(decoder->ok()); |
225 return true; | 234 return true; |
226 } | 235 } |
227 | 236 |
(...skipping 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2151 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, | 2160 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, |
2152 const byte* start, const byte* end) { | 2161 const byte* start, const byte* end) { |
2153 Decoder decoder(start, end); | 2162 Decoder decoder(start, end); |
2154 return WasmDecoder::AnalyzeLoopAssignment(&decoder, start, | 2163 return WasmDecoder::AnalyzeLoopAssignment(&decoder, start, |
2155 static_cast<int>(num_locals), zone); | 2164 static_cast<int>(num_locals), zone); |
2156 } | 2165 } |
2157 | 2166 |
2158 } // namespace wasm | 2167 } // namespace wasm |
2159 } // namespace internal | 2168 } // namespace internal |
2160 } // namespace v8 | 2169 } // namespace v8 |
OLD | NEW |