Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 273203ce01bac738241ba8648ba82da6d0d8f50b..a3022b6fc49c92b5bcfe5c302ea5099a6f791462 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -971,10 +971,8 @@ void BytecodeGenerator::VisitFunctionLiteral(FunctionLiteral* expr) { |
Handle<SharedFunctionInfo> shared_info = |
Compiler::GetSharedFunctionInfo(expr, info()->script(), info()); |
CHECK(!shared_info.is_null()); // TODO(rmcilroy): Set stack overflow? |
- |
- builder() |
- ->LoadLiteral(shared_info) |
- .CreateClosure(expr->pretenure() ? TENURED : NOT_TENURED); |
+ builder()->CreateClosure(shared_info, |
+ expr->pretenure() ? TENURED : NOT_TENURED); |
execution_result()->SetResultInAccumulator(); |
} |