summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/bytecode/Opcode.h
diff options
context:
space:
mode:
authorKonstantin Tokarev <annulen@yandex.ru>2019-06-04 22:44:55 +0300
committerKonstantin Tokarev <annulen@yandex.ru>2019-06-04 22:45:21 +0300
commitc49326e942d7cc21f78fe187020dce73befdd935 (patch)
treefaf0927eeeff4c57e998902b2085d976e588ed2b /Source/JavaScriptCore/bytecode/Opcode.h
parent72cfbd7664f21fcc0e62b869a6b01bf73eb5e7da (diff)
downloadqtwebkit-c49326e942d7cc21f78fe187020dce73befdd935.tar.gz
Import WebKit commit 5ccca3a720f7c2251c4ac8b28f25bd73524081f0
Change-Id: Idfb37cd43929536d4c67d1fa5d8cb598e9c0ad7e Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Source/JavaScriptCore/bytecode/Opcode.h')
-rw-r--r--Source/JavaScriptCore/bytecode/Opcode.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/Source/JavaScriptCore/bytecode/Opcode.h b/Source/JavaScriptCore/bytecode/Opcode.h
index ee667c84f..21665c5f7 100644
--- a/Source/JavaScriptCore/bytecode/Opcode.h
+++ b/Source/JavaScriptCore/bytecode/Opcode.h
@@ -85,21 +85,8 @@ typedef void* Opcode;
typedef OpcodeID Opcode;
#endif
-#define PADDING_STRING " "
-#define PADDING_STRING_LENGTH static_cast<unsigned>(strlen(PADDING_STRING))
-
extern const char* const opcodeNames[];
-inline const char* padOpcodeName(OpcodeID op, unsigned width)
-{
- unsigned pad = width - strlen(opcodeNames[op]);
- pad = std::min(pad, PADDING_STRING_LENGTH);
- return PADDING_STRING + PADDING_STRING_LENGTH - pad;
-}
-
-#undef PADDING_STRING_LENGTH
-#undef PADDING_STRING
-
#if ENABLE(OPCODE_STATS)
struct OpcodeStats {