Commit 5e8b2b80 authored by rmcilroy's avatar rmcilroy Committed by Commit bot

[Interpreter] Small cleanup on VisitClassLiteral

Review-Url: https://codereview.chromium.org/2534123003
Cr-Commit-Position: refs/heads/master@{#41366}
parent 957f3f10
......@@ -1405,9 +1405,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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment