| 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 6f7563f4fc3e38f79d89909053a65689408709cb..982bbee6c68e038309bd05a0f9f9dea83f4663e8 100644
|
| --- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc
|
| +++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc
|
| @@ -337,6 +337,8 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) {
|
| builder.StoreDataPropertyInLiteral(reg, reg,
|
| DataPropertyInLiteralFlag::kNoFlags, 0);
|
|
|
| + builder.CollectTypeProfile(reg, reg, 0);
|
| +
|
| // Emit wide context operations.
|
| builder.LoadContextSlot(reg, 1024, 0, BytecodeArrayBuilder::kMutableSlot)
|
| .StoreContextSlot(reg, 1024, 0);
|
| @@ -439,6 +441,12 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) {
|
| scorecard[Bytecodes::ToByte(Bytecode::kTestNull)] = 1;
|
| }
|
|
|
| + if (!FLAG_type_profile) {
|
| + // Insert entry for bytecodes only emitted when
|
| + // Type Information for DevTools is turned on.
|
| + scorecard[Bytecodes::ToByte(Bytecode::kCollectTypeProfile)] = 1;
|
| + }
|
| +
|
| // Check return occurs at the end and only once in the BytecodeArray.
|
| CHECK_EQ(final_bytecode, Bytecode::kReturn);
|
| CHECK_EQ(scorecard[Bytecodes::ToByte(final_bytecode)], 1);
|
|
|