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

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

Issue 1729833002: Add wasm internal opcodes for asm.js stdlib functions we're missing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 9 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/wasm/asm-wasm-builder.cc ('k') | src/wasm/wasm-opcodes.h » ('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 #include "src/base/platform/elapsed-timer.h" 5 #include "src/base/platform/elapsed-timer.h"
6 #include "src/signature.h" 6 #include "src/signature.h"
7 7
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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 } 286 }
287 287
288 #define DECLARE_OPCODE_CASE(name, opcode, sig) \ 288 #define DECLARE_OPCODE_CASE(name, opcode, sig) \
289 case kExpr##name: \ 289 case kExpr##name: \
290 return kArity_##sig; 290 return kArity_##sig;
291 291
292 FOREACH_LOAD_MEM_OPCODE(DECLARE_OPCODE_CASE) 292 FOREACH_LOAD_MEM_OPCODE(DECLARE_OPCODE_CASE)
293 FOREACH_STORE_MEM_OPCODE(DECLARE_OPCODE_CASE) 293 FOREACH_STORE_MEM_OPCODE(DECLARE_OPCODE_CASE)
294 FOREACH_MISC_MEM_OPCODE(DECLARE_OPCODE_CASE) 294 FOREACH_MISC_MEM_OPCODE(DECLARE_OPCODE_CASE)
295 FOREACH_SIMPLE_OPCODE(DECLARE_OPCODE_CASE) 295 FOREACH_SIMPLE_OPCODE(DECLARE_OPCODE_CASE)
296 FOREACH_ASMJS_COMPAT_OPCODE(DECLARE_OPCODE_CASE)
296 #undef DECLARE_OPCODE_CASE 297 #undef DECLARE_OPCODE_CASE
297 } 298 }
298 UNREACHABLE(); 299 UNREACHABLE();
299 return 0; 300 return 0;
300 } 301 }
301 302
302 int OpcodeLength(const byte* pc) { 303 int OpcodeLength(const byte* pc) {
303 switch (static_cast<WasmOpcode>(*pc)) { 304 switch (static_cast<WasmOpcode>(*pc)) {
304 #define DECLARE_OPCODE_CASE(name, opcode, sig) case kExpr##name: 305 #define DECLARE_OPCODE_CASE(name, opcode, sig) case kExpr##name:
305 FOREACH_LOAD_MEM_OPCODE(DECLARE_OPCODE_CASE) 306 FOREACH_LOAD_MEM_OPCODE(DECLARE_OPCODE_CASE)
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 1706
1706 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, FunctionEnv* env, 1707 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, FunctionEnv* env,
1707 const byte* start, const byte* end) { 1708 const byte* start, const byte* end) {
1708 LoopAssignmentAnalyzer analyzer(zone, env); 1709 LoopAssignmentAnalyzer analyzer(zone, env);
1709 return analyzer.Analyze(start, end); 1710 return analyzer.Analyze(start, end);
1710 } 1711 }
1711 1712
1712 } // namespace wasm 1713 } // namespace wasm
1713 } // namespace internal 1714 } // namespace internal
1714 } // namespace v8 1715 } // namespace v8
OLDNEW
« no previous file with comments | « src/wasm/asm-wasm-builder.cc ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698