| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index d4755a6dde21d19ea87595b03e32f4bf4747e1dd..6b62f5199c6c4940dfe4f56197d1ab3c90fa51b7 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();
|
| }
|
|
|
|
|