| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index 8e6c9c53295a530ed45649645f7dc1f0a7953282..3fb6a39bbe449467c0840722dfdd11491056b912 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()) {
|
| @@ -793,7 +792,6 @@ void BytecodeGenerator::VisitConditional(Conditional* expr) {
|
| BytecodeLabel else_label, end_label;
|
|
|
| VisitForAccumulatorValue(expr->condition());
|
| - builder()->CastAccumulatorToBoolean();
|
| builder()->JumpIfFalse(&else_label);
|
|
|
| VisitForAccumulatorValue(expr->then_expression());
|
| @@ -1793,7 +1791,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);
|
| }
|
| @@ -1812,7 +1810,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);
|
| }
|
|
|