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 e2ccce260891ad182eef4f319cf7454d94ff5825..4dc5d5d32dbae3dcf08a0d8ec63b7b5220cf9373 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -164,9 +164,7 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
BytecodeLabel start; |
builder.Bind(&start); |
// Short jumps with Imm8 operands |
- builder.Jump(&start) |
- .JumpIfNull(&start) |
- .JumpIfUndefined(&start); |
+ builder.Jump(&start).JumpIfNull(&start).JumpIfUndefined(&start); |
// Perform an operation that returns boolean value to |
// generate JumpIfTrue/False |
builder.CompareOperation(Token::Value::EQ, reg, Strength::WEAK) |
@@ -184,9 +182,7 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
builder.LoadTrue(); |
} |
// Longer jumps requiring Constant operand |
- builder.Jump(&start) |
- .JumpIfNull(&start) |
- .JumpIfUndefined(&start); |
+ builder.Jump(&start).JumpIfNull(&start).JumpIfUndefined(&start); |
// Perform an operation that returns boolean value to |
// generate JumpIfTrue/False |
builder.CompareOperation(Token::Value::EQ, reg, Strength::WEAK) |
@@ -285,7 +281,9 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
// Generate BytecodeArray. |
Handle<BytecodeArray> the_array = builder.ToBytecodeArray(); |
CHECK_EQ(the_array->frame_size(), |
- builder.fixed_register_count() * kPointerSize); |
+ (builder.fixed_and_temporary_register_count() + |
+ builder.translation_register_count()) * |
+ kPointerSize); |
// Build scorecard of bytecodes encountered in the BytecodeArray. |
std::vector<int> scorecard(Bytecodes::ToByte(Bytecode::kLast) + 1); |
@@ -687,7 +685,6 @@ TEST_F(BytecodeArrayBuilderTest, LabelAddressReuse) { |
CHECK(iterator.done()); |
} |
- |
} // namespace interpreter |
} // namespace internal |
} // namespace v8 |