diff options
Diffstat (limited to 'Source/JavaScriptCore/bytecode/Operands.h')
-rw-r--r-- | Source/JavaScriptCore/bytecode/Operands.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/JavaScriptCore/bytecode/Operands.h b/Source/JavaScriptCore/bytecode/Operands.h index a05159f81..05a24d0fd 100644 --- a/Source/JavaScriptCore/bytecode/Operands.h +++ b/Source/JavaScriptCore/bytecode/Operands.h @@ -126,6 +126,16 @@ public: setLocal(operand, value); } + void setOperandFirstTime(int operand, const T& value) + { + if (operandIsArgument(operand)) { + setArgumentFirstTime(operandToArgument(operand), value); + return; + } + + setLocalFirstTime(operand, value); + } + void clear() { for (size_t i = 0; i < m_arguments.size(); ++i) |