2 * Copyright (C) 2008 The Android Open Source Project
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 * Table of Dalvik opcode names.
19 #include "OpCodeNames.h"
22 * The following two lines work, but slashes and dashes both turn into
23 * underscores, and the strings are all upper case. The output is easier
24 * to read if we do the strings by hand (could probably write a
25 * post-processing function easily enough if maintenance becomes annoying).
28 //DEFINE_GOTO_TABLE(gOpNames)
31 * Dalvik opcode names.
33 static const char* gOpNames[256] = {
76 "filled-new-array/range",
165 "invoke-virtual/range",
166 "invoke-super/range",
167 "invoke-direct/range",
168 "invoke-static/range",
169 "invoke-interface/range",
305 "+invoke-direct-empty",
309 "+iget-object-quick",
312 "+iput-object-quick",
313 "+invoke-virtual-quick",
314 "+invoke-virtual-quick/range",
315 "+invoke-super-quick",
316 "+invoke-super-quick/range",
324 * Return the name of an opcode.
326 const char* getOpcodeName(OpCode op)