diff options
Diffstat (limited to 'runtime/dex_instruction.cc')
| -rw-r--r-- | runtime/dex_instruction.cc | 51 |
1 files changed, 12 insertions, 39 deletions
diff --git a/runtime/dex_instruction.cc b/runtime/dex_instruction.cc index 300e618c82..c31d236dc7 100644 --- a/runtime/dex_instruction.cc +++ b/runtime/dex_instruction.cc @@ -28,7 +28,7 @@ namespace art { const char* const Instruction::kInstructionNames[] = { -#define INSTRUCTION_NAME(o, c, pname, f, r, i, a, v) pname, +#define INSTRUCTION_NAME(o, c, pname, f, i, a, v) pname, #include "dex_instruction_list.h" DEX_INSTRUCTION_LIST(INSTRUCTION_NAME) #undef DEX_INSTRUCTION_LIST @@ -36,7 +36,7 @@ const char* const Instruction::kInstructionNames[] = { }; Instruction::Format const Instruction::kInstructionFormats[] = { -#define INSTRUCTION_FORMAT(o, c, p, format, r, i, a, v) format, +#define INSTRUCTION_FORMAT(o, c, p, format, i, a, v) format, #include "dex_instruction_list.h" DEX_INSTRUCTION_LIST(INSTRUCTION_FORMAT) #undef DEX_INSTRUCTION_LIST @@ -44,7 +44,7 @@ Instruction::Format const Instruction::kInstructionFormats[] = { }; Instruction::IndexType const Instruction::kInstructionIndexTypes[] = { -#define INSTRUCTION_INDEX_TYPE(o, c, p, f, r, index, a, v) index, +#define INSTRUCTION_INDEX_TYPE(o, c, p, f, index, a, v) index, #include "dex_instruction_list.h" DEX_INSTRUCTION_LIST(INSTRUCTION_INDEX_TYPE) #undef DEX_INSTRUCTION_LIST @@ -52,7 +52,7 @@ Instruction::IndexType const Instruction::kInstructionIndexTypes[] = { }; int const Instruction::kInstructionFlags[] = { -#define INSTRUCTION_FLAGS(o, c, p, f, r, i, flags, v) flags, +#define INSTRUCTION_FLAGS(o, c, p, f, i, flags, v) flags, #include "dex_instruction_list.h" DEX_INSTRUCTION_LIST(INSTRUCTION_FLAGS) #undef DEX_INSTRUCTION_LIST @@ -60,7 +60,7 @@ int const Instruction::kInstructionFlags[] = { }; int const Instruction::kInstructionVerifyFlags[] = { -#define INSTRUCTION_VERIFY_FLAGS(o, c, p, f, r, i, a, vflags) vflags, +#define INSTRUCTION_VERIFY_FLAGS(o, c, p, f, i, a, vflags) vflags, #include "dex_instruction_list.h" DEX_INSTRUCTION_LIST(INSTRUCTION_VERIFY_FLAGS) #undef DEX_INSTRUCTION_LIST @@ -68,12 +68,13 @@ int const Instruction::kInstructionVerifyFlags[] = { }; int const Instruction::kInstructionSizeInCodeUnits[] = { -#define INSTRUCTION_SIZE(opcode, c, p, format, r, i, a, v) \ - (((opcode) == NOP) ? -1 : \ - (((format) >= k10x) && ((format) <= k10t)) ? 1 : \ - (((format) >= k20t) && ((format) <= k25x)) ? 2 : \ - (((format) >= k32x) && ((format) <= k3rc)) ? 3 : \ - ((format) == k51l) ? 5 : -1), +#define INSTRUCTION_SIZE(opcode, c, p, format, i, a, v) \ + (((opcode) == NOP) ? -1 : \ + (((format) >= k10x) && ((format) <= k10t)) ? 1 : \ + (((format) >= k20t) && ((format) <= k22c)) ? 2 : \ + (((format) >= k32x) && ((format) <= k3rc)) ? 3 : \ + (((format) >= k45cc) && ((format) <= k4rcc)) ? 4 : \ + ((format) == k51l) ? 5 : -1), #include "dex_instruction_list.h" DEX_INSTRUCTION_LIST(INSTRUCTION_SIZE) #undef DEX_INSTRUCTION_LIST @@ -241,14 +242,6 @@ std::string Instruction::DumpString(const DexFile* file) const { break; } FALLTHROUGH_INTENDED; - case CREATE_LAMBDA: - if (file != nullptr) { - uint32_t method_idx = VRegB_21c(); - os << opcode << " v" << static_cast<int>(VRegA_21c()) << ", " << PrettyMethod(method_idx, *file, true) - << " // method@" << method_idx; - break; - } - FALLTHROUGH_INTENDED; default: os << StringPrintf("%s v%d, thing@%d", opcode, VRegA_21c(), VRegB_21c()); break; @@ -329,26 +322,6 @@ std::string Instruction::DumpString(const DexFile* file) const { } break; } - case k25x: { - if (Opcode() == INVOKE_LAMBDA) { - uint32_t arg[kMaxVarArgRegs25x]; - GetAllArgs25x(arg); - const size_t num_extra_var_args = VRegB_25x(); - DCHECK_LE(num_extra_var_args + 2, arraysize(arg)); - - // invoke-lambda vC, {vD, vE, vF, vG} - os << opcode << " v" << arg[0] << ", {"; - for (size_t i = 0; i < num_extra_var_args; ++i) { - if (i != 0) { - os << ", "; - } - os << "v" << arg[i + 2]; // Don't print the pair of vC registers. Pair is implicit. - } - os << "}"; - break; - } - FALLTHROUGH_INTENDED; - } case k32x: os << StringPrintf("%s v%d, v%d", opcode, VRegA_32x(), VRegB_32x()); break; case k30t: os << StringPrintf("%s %+d", opcode, VRegA_30t()); break; case k31t: os << StringPrintf("%s v%d, %+d", opcode, VRegA_31t(), VRegB_31t()); break; |