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

Side by Side Diff: src/wasm/ast-decoder.h

Issue 2400863003: [wasm] Simd128 types should not be available in asmjs modules. (Closed)
Patch Set: Fix test Created 4 years, 2 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
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/ast-decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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
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
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_
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/ast-decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698