| 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 9f8a2d4dbea75c2ecb02e017bdb7cce069ba31b8..533766045ffa2bf71f76eecab22223631cb060cd 100644
|
| --- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc
|
| +++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc
|
| @@ -441,6 +441,12 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) {
|
| scorecard[Bytecodes::ToByte(Bytecode::kTestNull)] = 1;
|
| }
|
|
|
| + if (!FLAG_type_profile) {
|
| + // Bytecode for CollectTypeProfile is 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);
|
|
|