diff options
Diffstat (limited to 'Source/JavaScriptCore/bytecode/Operands.h')
-rw-r--r-- | Source/JavaScriptCore/bytecode/Operands.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/JavaScriptCore/bytecode/Operands.h b/Source/JavaScriptCore/bytecode/Operands.h index b0f0e692c..0cea096cf 100644 --- a/Source/JavaScriptCore/bytecode/Operands.h +++ b/Source/JavaScriptCore/bytecode/Operands.h @@ -190,7 +190,7 @@ private: }; template<typename T, typename Traits> -void dumpOperands(Operands<T, Traits>& operands, FILE* out) +void dumpOperands(const Operands<T, Traits>& operands, FILE* out) { for (size_t argument = 0; argument < operands.numberOfArguments(); ++argument) { if (argument) @@ -205,16 +205,6 @@ void dumpOperands(Operands<T, Traits>& operands, FILE* out) } } -template<typename T, typename Traits> -void dumpOperands(const Operands<T, Traits>& operands, FILE* out) -{ - // Use const-cast because: - // 1) I don't feel like writing this code twice, and - // 2) Some dump() methods may not be const, and I don't really care if that's - // the case. - dumpOperands(*const_cast<Operands<T, Traits>*>(&operands), out); -} - } // namespace JSC #endif // Operands_h |