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

Side by Side Diff: src/wasm/wasm-opcodes.h

Issue 2307733002: [wasm] Fix wasm decoder tracing for prefix opcodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 3 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/ast-decoder.cc ('k') | src/wasm/wasm-opcodes.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_OPCODES_H_ 5 #ifndef V8_WASM_OPCODES_H_
6 #define V8_WASM_OPCODES_H_ 6 #define V8_WASM_OPCODES_H_
7 7
8 #include "src/machine-type.h" 8 #include "src/machine-type.h"
9 #include "src/signature.h" 9 #include "src/signature.h"
10 10
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 kTrapCount 482 kTrapCount
483 #undef DECLARE_ENUM 483 #undef DECLARE_ENUM
484 }; 484 };
485 485
486 // A collection of opcode-related static methods. 486 // A collection of opcode-related static methods.
487 class WasmOpcodes { 487 class WasmOpcodes {
488 public: 488 public:
489 static const char* OpcodeName(WasmOpcode opcode); 489 static const char* OpcodeName(WasmOpcode opcode);
490 static const char* ShortOpcodeName(WasmOpcode opcode); 490 static const char* ShortOpcodeName(WasmOpcode opcode);
491 static FunctionSig* Signature(WasmOpcode opcode); 491 static FunctionSig* Signature(WasmOpcode opcode);
492 static bool IsPrefixOpcode(WasmOpcode opcode);
492 493
493 static int TrapReasonToMessageId(TrapReason reason); 494 static int TrapReasonToMessageId(TrapReason reason);
494 static const char* TrapReasonMessage(TrapReason reason); 495 static const char* TrapReasonMessage(TrapReason reason);
495 496
496 static byte MemSize(MachineType type) { 497 static byte MemSize(MachineType type) {
497 return 1 << ElementSizeLog2Of(type.representation()); 498 return 1 << ElementSizeLog2Of(type.representation());
498 } 499 }
499 500
500 static LocalTypeCode LocalTypeCodeFor(LocalType type) { 501 static LocalTypeCode LocalTypeCodeFor(LocalType type) {
501 switch (type) { 502 switch (type) {
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 default: 635 default:
635 return "<unknown>"; 636 return "<unknown>";
636 } 637 }
637 } 638 }
638 }; 639 };
639 } // namespace wasm 640 } // namespace wasm
640 } // namespace internal 641 } // namespace internal
641 } // namespace v8 642 } // namespace v8
642 643
643 #endif // V8_WASM_OPCODES_H_ 644 #endif // V8_WASM_OPCODES_H_
OLDNEW
« no previous file with comments | « src/wasm/ast-decoder.cc ('k') | src/wasm/wasm-opcodes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698