Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index 4f243eab015081234b7797d168d1fa16321e4e73..2a69d28de96dbd0b4ca8fe030c2e81e500ec1c12 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -3112,9 +3112,10 @@ void CodeGenerator::InstantiateFunction( |
bool pretenure) { |
// Use the fast case closure allocation code that allocates in new |
// space for nested functions that don't need literals cloning. |
- if (scope()->is_function_scope() && |
+ if (!pretenure && |
+ scope()->is_function_scope() && |
function_info->num_literals() == 0 && |
- !pretenure) { |
+ !function_info->strict_mode()) { // Strict mode functions use slow path. |
Lasse Reichstein
2011/03/14 12:20:15
We'll need a fast path for strict mode functions t
Martin Maly
2011/03/14 16:39:26
Yep. Opening an issue on this.
http://code.google.
|
FastNewClosureStub stub; |
frame_->EmitPush(Operand(function_info)); |
frame_->SpillAll(); |