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 f83ede0e5b817c4961ff88f31bddffc1b4524319..398d3bed628340eca59aa60cf54d58b295f6be5c 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -99,10 +99,7 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
.StoreLookupSlot(name, LanguageMode::STRICT); |
// Emit closure operations. |
- Handle<SharedFunctionInfo> shared_info = factory->NewSharedFunctionInfo( |
- factory->NewStringFromStaticChars("function_a"), MaybeHandle<Code>(), |
- false); |
- builder.CreateClosure(shared_info, NOT_TENURED); |
+ builder.CreateClosure(0, NOT_TENURED); |
// Emit literal creation operations. |
builder.CreateRegExpLiteral(factory->NewStringFromStaticChars("a"), 0, 0) |
@@ -322,10 +319,7 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
.StoreAccumulatorInRegister(reg); |
// CreateClosureWide |
- Handle<SharedFunctionInfo> shared_info2 = factory->NewSharedFunctionInfo( |
- factory->NewStringFromStaticChars("function_b"), MaybeHandle<Code>(), |
- false); |
- builder.CreateClosure(shared_info2, NOT_TENURED); |
+ builder.CreateClosure(1000, NOT_TENURED); |
// Emit wide variant of literal creation operations. |
builder.CreateRegExpLiteral(factory->NewStringFromStaticChars("wide_literal"), |