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 e9dd452f95ae9a796a0c4457e8074af7e2384153..d15fc0a7bf4ae988c1e35642dbd3abef39575414 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -104,10 +104,10 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
builder.CreateArguments(CreateArgumentsType::kMappedArguments) |
.CreateArguments(CreateArgumentsType::kUnmappedArguments); |
- // Emit literal creation operations |
- builder.CreateRegExpLiteral(0, 0) |
- .CreateArrayLiteral(0, 0) |
- .CreateObjectLiteral(0, 0); |
+ // Emit literal creation operations. |
+ builder.CreateRegExpLiteral(factory->NewStringFromStaticChars("a"), 0, 0) |
+ .CreateArrayLiteral(factory->NewFixedArray(1), 0, 0) |
+ .CreateObjectLiteral(factory->NewFixedArray(1), 0, 0); |
// Call operations. |
builder.Call(reg, reg, 0, 0) |
@@ -225,6 +225,12 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
false); |
builder.CreateClosure(shared_info2, NOT_TENURED); |
+ // Emit wide variant of literal creation operations. |
+ builder.CreateRegExpLiteral(factory->NewStringFromStaticChars("wide_literal"), |
+ 0, 0) |
+ .CreateArrayLiteral(factory->NewFixedArray(2), 0, 0) |
+ .CreateObjectLiteral(factory->NewFixedArray(2), 0, 0); |
+ |
builder.Return(); |
// Generate BytecodeArray. |