| Index: src/arm/lithium-codegen-arm.cc
 | 
| diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc
 | 
| index 202631837d98ae32c860065e37c6db6d793c2219..6eeaeec2020b600529a39c39d91a1207b5ce2712 100644
 | 
| --- a/src/arm/lithium-codegen-arm.cc
 | 
| +++ b/src/arm/lithium-codegen-arm.cc
 | 
| @@ -180,6 +180,7 @@ bool LCodeGen::GeneratePrologue() {
 | 
|      Comment(";;; Allocate local context");
 | 
|      bool need_write_barrier = true;
 | 
|      // Argument to NewContext is the function, which is in r1.
 | 
| +    DCHECK(!info()->scope()->is_script_scope());
 | 
|      if (heap_slots <= FastNewContextStub::kMaximumSlots) {
 | 
|        FastNewContextStub stub(isolate(), heap_slots);
 | 
|        __ CallStub(&stub);
 | 
| 
 |