diff options
Diffstat (limited to 'deps/v8/test/unittests/interpreter/bytecode-array-iterator-unittest.cc')
-rw-r--r-- | deps/v8/test/unittests/interpreter/bytecode-array-iterator-unittest.cc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/deps/v8/test/unittests/interpreter/bytecode-array-iterator-unittest.cc b/deps/v8/test/unittests/interpreter/bytecode-array-iterator-unittest.cc index cd9f120cad..f2dcd7107c 100644 --- a/deps/v8/test/unittests/interpreter/bytecode-array-iterator-unittest.cc +++ b/deps/v8/test/unittests/interpreter/bytecode-array-iterator-unittest.cc @@ -22,11 +22,7 @@ class BytecodeArrayIteratorTest : public TestWithIsolateAndZone { TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { // Use a builder to create an array with containing multiple bytecodes // with 0, 1 and 2 operands. - BytecodeArrayBuilder builder(isolate(), zone()); - builder.set_parameter_count(3); - builder.set_locals_count(2); - builder.set_context_count(0); - + BytecodeArrayBuilder builder(isolate(), zone(), 3, 2, 0); Factory* factory = isolate()->factory(); Handle<HeapObject> heap_num_0 = factory->NewHeapNumber(2.718); Handle<HeapObject> heap_num_1 = factory->NewHeapNumber(2147483647); @@ -46,9 +42,10 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { .LoadLiteral(smi_0) .LoadLiteral(smi_1) .LoadAccumulatorWithRegister(reg_0) - .LoadNamedProperty(reg_1, name, feedback_slot, LanguageMode::SLOPPY) + .LoadNamedProperty(reg_1, name, feedback_slot) .StoreAccumulatorInRegister(reg_2) .CallRuntime(Runtime::kLoadIC_Miss, reg_0, 1) + .Debugger() .Return(); // Test iterator sees the expected output from the builder. @@ -82,7 +79,7 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { CHECK(!iterator.done()); iterator.Advance(); - CHECK_EQ(iterator.current_bytecode(), Bytecode::kLoadICSloppy); + CHECK_EQ(iterator.current_bytecode(), Bytecode::kLoadIC); CHECK_EQ(iterator.GetRegisterOperand(0).index(), reg_1.index()); CHECK_EQ(iterator.GetIndexOperand(1), name_index); CHECK_EQ(iterator.GetIndexOperand(2), feedback_slot); @@ -98,7 +95,11 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { CHECK_EQ(static_cast<Runtime::FunctionId>(iterator.GetIndexOperand(0)), Runtime::kLoadIC_Miss); CHECK_EQ(iterator.GetRegisterOperand(1).index(), reg_0.index()); - CHECK_EQ(iterator.GetCountOperand(2), 1); + CHECK_EQ(iterator.GetRegisterCountOperand(2), 1); + CHECK(!iterator.done()); + iterator.Advance(); + + CHECK_EQ(iterator.current_bytecode(), Bytecode::kDebugger); CHECK(!iterator.done()); iterator.Advance(); |