Index: test/unittests/interpreter/bytecode-array-builder-unittest.cc |
diff --git a/test/unittests/interpreter/bytecode-array-builder-unittest.cc b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
index 032c8c1da90e5136b7aeb0ccc09d06fff722c976..acb72c194a099fb2d26747cd3cc55597227809df 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -109,13 +109,21 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
BytecodeLabel start; |
builder.Bind(&start); |
// Short jumps with Imm8 operands |
- builder.Jump(&start).JumpIfTrue(&start).JumpIfFalse(&start); |
+ builder.Jump(&start) |
+ .JumpIfTrue(&start) |
+ .JumpIfFalse(&start) |
+ .JumpIfToBooleanTrue(&start) |
+ .JumpIfToBooleanFalse(&start); |
// Insert dummy ops to force longer jumps |
for (int i = 0; i < 128; i++) { |
builder.LoadTrue(); |
} |
// Longer jumps requiring Constant operand |
- builder.Jump(&start).JumpIfTrue(&start).JumpIfFalse(&start); |
+ builder.Jump(&start) |
+ .JumpIfTrue(&start) |
+ .JumpIfFalse(&start) |
+ .JumpIfToBooleanTrue(&start) |
+ .JumpIfToBooleanFalse(&start); |
builder.Return(); |
// Generate BytecodeArray. |