Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index 47ad4c5f0f99e5806d8fc0df2c0e35b21acbc461..9a303c0330aa34721b7b5f5aa6ab4f3a71350d8a 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -1208,11 +1208,8 @@ void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info, |
// flag, we need to use the runtime function so that the new function |
// we are creating here gets a chance to have its code optimized and |
// doesn't just get a copy of the existing unoptimized code. |
- if (!FLAG_always_opt && |
- !FLAG_prepare_always_opt && |
- !pretenure && |
- scope()->is_function_scope() && |
- info->num_literals() == 0) { |
+ if (!FLAG_always_opt && !FLAG_prepare_always_opt && !pretenure && |
+ scope()->is_function_scope()) { |
FastNewClosureStub stub(isolate(), info->language_mode(), info->kind()); |
__ li(a2, Operand(info)); |
__ CallStub(&stub); |