Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: src/wasm/function-body-decoder.cc

Issue 2700813002: [V8] Implement SIMD Boolean vector types to allow mask registers. (Closed)
Patch Set: Remove stray DCHECK. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 kLocalS4:
219 type = kWasmS4;
220 break;
221 case kLocalS8:
222 type = kWasmS8;
223 break;
224 case kLocalS16:
225 type = kWasmS16;
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 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, 2138 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals,
2130 const byte* start, const byte* end) { 2139 const byte* start, const byte* end) {
2131 Decoder decoder(start, end); 2140 Decoder decoder(start, end);
2132 return WasmDecoder::AnalyzeLoopAssignment(&decoder, start, 2141 return WasmDecoder::AnalyzeLoopAssignment(&decoder, start,
2133 static_cast<int>(num_locals), zone); 2142 static_cast<int>(num_locals), zone);
2134 } 2143 }
2135 2144
2136 } // namespace wasm 2145 } // namespace wasm
2137 } // namespace internal 2146 } // namespace internal
2138 } // namespace v8 2147 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698