| Index: src/interpreter/bytecode-array-builder.h
|
| diff --git a/src/interpreter/bytecode-array-builder.h b/src/interpreter/bytecode-array-builder.h
|
| index 6d849477a16d7140869c6fe3343838fdb5ae762e..4da14ae1361773687fbede39169355b6a4710d75 100644
|
| --- a/src/interpreter/bytecode-array-builder.h
|
| +++ b/src/interpreter/bytecode-array-builder.h
|
| @@ -183,11 +183,6 @@ class BytecodeArrayBuilder {
|
| BytecodeArrayBuilder& JumpIfFalse(BytecodeLabel* label);
|
| BytecodeArrayBuilder& JumpIfNull(BytecodeLabel* label);
|
| BytecodeArrayBuilder& JumpIfUndefined(BytecodeLabel* label);
|
| - // TODO(mythria) The following two functions should be merged into
|
| - // JumpIfTrue/False. These bytecodes should be automatically chosen rather
|
| - // than explicitly using them.
|
| - BytecodeArrayBuilder& JumpIfToBooleanTrue(BytecodeLabel* label);
|
| - BytecodeArrayBuilder& JumpIfToBooleanFalse(BytecodeLabel* label);
|
|
|
| BytecodeArrayBuilder& Throw();
|
| BytecodeArrayBuilder& Return();
|
| @@ -228,6 +223,7 @@ class BytecodeArrayBuilder {
|
| static bool FitsInIdx16Operand(size_t value);
|
|
|
| static Bytecode GetJumpWithConstantOperand(Bytecode jump_with_smi8_operand);
|
| + static Bytecode GetJumpWithToBoolean(Bytecode jump);
|
|
|
| template <size_t N>
|
| INLINE(void Output(Bytecode bytecode, uint32_t(&oprands)[N]));
|
| @@ -248,6 +244,8 @@ class BytecodeArrayBuilder {
|
| uint32_t operand_value) const;
|
| bool LastBytecodeInSameBlock() const;
|
|
|
| + bool NeedToBooleanCast();
|
| +
|
| int BorrowTemporaryRegister();
|
| void ReturnTemporaryRegister(int reg_index);
|
| int PrepareForConsecutiveTemporaryRegisters(size_t count);
|
|
|