Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 1200cacd0707baeb4b9dbaf7ffbb079fc94479ad..a22c8314082c3fd4817da0e74ccacf9b2412aea3 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -1402,9 +1402,8 @@ void BytecodeGenerator::VisitClassLiteral(ClassLiteral* expr) { |
VisitClassLiteralForRuntimeDefinition(expr); |
// Load the "prototype" from the constructor. |
- RegisterList args = register_allocator()->NewRegisterList(2); |
- Register literal = args[0]; |
- Register prototype = args[1]; |
+ Register literal = register_allocator()->NewRegister(); |
+ Register prototype = register_allocator()->NewRegister(); |
FeedbackVectorSlot slot = expr->PrototypeSlot(); |
builder() |
->StoreAccumulatorInRegister(literal) |