| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index a8407294a7c112cbef29fcd734722faf65331657..76b2835a93621ff4b6a0f0ad0f7a733d6e8d97dd 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -496,7 +496,6 @@ void BytecodeGenerator::VisitIfStatement(IfStatement* stmt) {
|
| BytecodeLabel else_label, end_label;
|
|
|
| VisitForAccumulatorValue(stmt->condition());
|
| - builder()->CastAccumulatorToBoolean();
|
| builder()->JumpIfFalse(&else_label);
|
| Visit(stmt->then_statement());
|
| if (stmt->HasElseStatement()) {
|
| @@ -684,7 +683,6 @@ void BytecodeGenerator::VisitConditional(Conditional* expr) {
|
| BytecodeLabel else_label, end_label;
|
|
|
| VisitForAccumulatorValue(expr->condition());
|
| - builder()->CastAccumulatorToBoolean();
|
| builder()->JumpIfFalse(&else_label);
|
|
|
| VisitForAccumulatorValue(expr->then_expression());
|
| @@ -1685,7 +1683,7 @@ void BytecodeGenerator::VisitLogicalOrExpression(BinaryOperation* binop) {
|
| } else {
|
| BytecodeLabel end_label;
|
| VisitForAccumulatorValue(left);
|
| - builder()->JumpIfToBooleanTrue(&end_label);
|
| + builder()->JumpIfTrue(&end_label);
|
| VisitForAccumulatorValue(right);
|
| builder()->Bind(&end_label);
|
| }
|
| @@ -1704,7 +1702,7 @@ void BytecodeGenerator::VisitLogicalAndExpression(BinaryOperation* binop) {
|
| } else {
|
| BytecodeLabel end_label;
|
| VisitForAccumulatorValue(left);
|
| - builder()->JumpIfToBooleanFalse(&end_label);
|
| + builder()->JumpIfFalse(&end_label);
|
| VisitForAccumulatorValue(right);
|
| builder()->Bind(&end_label);
|
| }
|
|
|