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 66e13fb8ac2ed33e2f0e5a3d8cb4f1f6b5271ada..ac585e056eb300b377fa5acc984bba07a75b907f 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -27,11 +27,10 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
CHECK_EQ(builder.context_count(), 1); |
CHECK_EQ(builder.fixed_register_count(), 132); |
- // Emit argument creation operations. CreateRestArguments should |
- // be output before any bytecodes that change constant pool. |
+ // Emit argument creation operations. |
builder.CreateArguments(CreateArgumentsType::kMappedArguments) |
.CreateArguments(CreateArgumentsType::kUnmappedArguments) |
- .CreateRestArguments(0); |
+ .CreateArguments(CreateArgumentsType::kRestParameter); |
// Emit constant loads. |
builder.LoadLiteral(Smi::FromInt(0)) |