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

Unified Diff: src/wasm/function-body-decoder.cc

Issue 2644323002: [wasm] Use the official opcode names everywhere. (Closed)
Patch Set: [wasm] Use the official opcode names everywhere. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/wasm-macro-gen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/function-body-decoder.cc
diff --git a/src/wasm/function-body-decoder.cc b/src/wasm/function-body-decoder.cc
index a798ff8c24aa17fda92c7247471acb5c3315777f..d2f6fcf93878ac031d777ca17ba1c11aebad558f 100644
--- a/src/wasm/function-body-decoder.cc
+++ b/src/wasm/function-body-decoder.cc
@@ -659,7 +659,7 @@ class WasmFullDecoder : public WasmDecoder {
WasmOpcode opcode = static_cast<WasmOpcode>(*pc_);
if (!WasmOpcodes::IsPrefixOpcode(opcode)) {
TRACE(" @%-8d #%02x:%-20s|", startrel(pc_), opcode,
- WasmOpcodes::ShortOpcodeName(opcode));
+ WasmOpcodes::OpcodeName(opcode));
}
FunctionSig* sig = WasmOpcodes::Signature(opcode);
@@ -852,7 +852,7 @@ class WasmFullDecoder : public WasmDecoder {
last_end_found_ = true;
if (ssa_env_->go()) {
// The result of the block is the return value.
- TRACE(" @%-8d #xx:%-20s|", startrel(pc_), "ImplicitReturn");
+ TRACE(" @%-8d #xx:%-20s|", startrel(pc_), "(implicit) return");
DoReturn();
TRACE("\n");
}
@@ -1164,7 +1164,7 @@ class WasmFullDecoder : public WasmDecoder {
byte simd_index = checked_read_u8(pc_, 1, "simd index");
opcode = static_cast<WasmOpcode>(opcode << 8 | simd_index);
TRACE(" @%-4d #%02x #%02x:%-20s|", startrel(pc_), kSimdPrefix,
- simd_index, WasmOpcodes::ShortOpcodeName(opcode));
+ simd_index, WasmOpcodes::OpcodeName(opcode));
len += DecodeSimdOpcode(opcode);
break;
}
@@ -1211,7 +1211,7 @@ class WasmFullDecoder : public WasmDecoder {
}
PrintF(" %c@%d:%s", WasmOpcodes::ShortNameOf(val.type),
static_cast<int>(val.pc - start_),
- WasmOpcodes::ShortOpcodeName(opcode));
+ WasmOpcodes::OpcodeName(opcode));
switch (opcode) {
case kExprI32Const: {
ImmI32Operand operand(this, val.pc);
@@ -1423,7 +1423,7 @@ class WasmFullDecoder : public WasmDecoder {
const char* SafeOpcodeNameAt(const byte* pc) {
if (pc >= end_) return "<end>";
- return WasmOpcodes::ShortOpcodeName(static_cast<WasmOpcode>(*pc));
+ return WasmOpcodes::OpcodeName(static_cast<WasmOpcode>(*pc));
}
Value Pop(int index, ValueType expected) {
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/wasm-macro-gen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698