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