| 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 4f3902a66d1c7b0b07424c1049e2105ea17ef45f..2863b3b7e24baed88e903ebed7d0079d4ec747cd 100644
|
| --- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc
|
| +++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc
|
| @@ -374,7 +374,7 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) {
|
| builder.Return();
|
|
|
| // Generate BytecodeArray.
|
| - Handle<BytecodeArray> the_array = builder.ToBytecodeArray();
|
| + Handle<BytecodeArray> the_array = builder.ToBytecodeArray(isolate());
|
| CHECK_EQ(the_array->frame_size(),
|
| builder.fixed_and_temporary_register_count() * kPointerSize);
|
|
|
| @@ -463,7 +463,7 @@ TEST_F(BytecodeArrayBuilderTest, FrameSizesLookGood) {
|
| }
|
| builder.Return();
|
|
|
| - Handle<BytecodeArray> the_array = builder.ToBytecodeArray();
|
| + Handle<BytecodeArray> the_array = builder.ToBytecodeArray(isolate());
|
| int total_registers = locals + contexts + temps;
|
| CHECK_EQ(the_array->frame_size(), total_registers * kPointerSize);
|
| }
|
| @@ -536,7 +536,7 @@ TEST_F(BytecodeArrayBuilderTest, Constants) {
|
| .LoadLiteral(heap_num_2_copy)
|
| .Return();
|
|
|
| - Handle<BytecodeArray> array = builder.ToBytecodeArray();
|
| + Handle<BytecodeArray> array = builder.ToBytecodeArray(isolate());
|
| // Should only have one entry for each identical constant.
|
| CHECK_EQ(array->constant_pool()->length(), 3);
|
| }
|
| @@ -589,7 +589,7 @@ TEST_F(BytecodeArrayBuilderTest, ForwardJumps) {
|
| builder.Bind(&far0).Bind(&far1).Bind(&far2).Bind(&far3).Bind(&far4);
|
| builder.Return();
|
|
|
| - Handle<BytecodeArray> array = builder.ToBytecodeArray();
|
| + Handle<BytecodeArray> array = builder.ToBytecodeArray(isolate());
|
| DCHECK_EQ(array->length(), 40 + kFarJumpDistance - 20 + 1);
|
|
|
| BytecodeArrayIterator iterator(array);
|
| @@ -709,7 +709,7 @@ TEST_F(BytecodeArrayBuilderTest, BackwardJumps) {
|
| builder.Bind(&end);
|
| builder.Return();
|
|
|
| - Handle<BytecodeArray> array = builder.ToBytecodeArray();
|
| + Handle<BytecodeArray> array = builder.ToBytecodeArray(isolate());
|
| BytecodeArrayIterator iterator(array);
|
| CHECK_EQ(iterator.current_bytecode(), Bytecode::kJump);
|
| CHECK_EQ(iterator.GetImmediateOperand(0), 0);
|
| @@ -804,7 +804,7 @@ TEST_F(BytecodeArrayBuilderTest, LabelReuse) {
|
| .Bind(&after_jump1)
|
| .Return();
|
|
|
| - Handle<BytecodeArray> array = builder.ToBytecodeArray();
|
| + Handle<BytecodeArray> array = builder.ToBytecodeArray(isolate());
|
| BytecodeArrayIterator iterator(array);
|
| CHECK_EQ(iterator.current_bytecode(), Bytecode::kJump);
|
| CHECK_EQ(iterator.GetImmediateOperand(0), 2);
|
| @@ -837,7 +837,7 @@ TEST_F(BytecodeArrayBuilderTest, LabelAddressReuse) {
|
| }
|
| builder.Return();
|
|
|
| - Handle<BytecodeArray> array = builder.ToBytecodeArray();
|
| + Handle<BytecodeArray> array = builder.ToBytecodeArray(isolate());
|
| BytecodeArrayIterator iterator(array);
|
| for (int i = 0; i < kRepeats; i++) {
|
| CHECK_EQ(iterator.current_bytecode(), Bytecode::kJump);
|
|
|