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 acc7393a4f02b2324ef2359ed61d7725ad67ac45..98b833c93637cd0c3f5ec0323b6bbf5e44def203 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -94,7 +94,11 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
.StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT); |
// Emit closure operations. |
- builder.CreateClosure(NOT_TENURED); |
+ Factory* factory = isolate()->factory(); |
+ Handle<SharedFunctionInfo> shared_info = factory->NewSharedFunctionInfo( |
+ factory->NewStringFromStaticChars("function_a"), MaybeHandle<Code>(), |
+ false); |
+ builder.CreateClosure(shared_info, NOT_TENURED); |
// Emit argument creation operations. |
builder.CreateArguments(CreateArgumentsType::kMappedArguments) |
@@ -215,6 +219,12 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
} |
builder.LoadLiteral(Smi::FromInt(20000000)); |
+ // CreateClosureWide |
+ Handle<SharedFunctionInfo> shared_info2 = factory->NewSharedFunctionInfo( |
+ factory->NewStringFromStaticChars("function_b"), MaybeHandle<Code>(), |
+ false); |
+ builder.CreateClosure(shared_info2, NOT_TENURED); |
+ |
builder.Return(); |
// Generate BytecodeArray. |