Index: src/virtual-frame-arm.cc |
=================================================================== |
--- src/virtual-frame-arm.cc (revision 1640) |
+++ src/virtual-frame-arm.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright 2008 the V8 project authors. All rights reserved. |
+// Copyright 2009 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -44,7 +44,9 @@ |
VirtualFrame::VirtualFrame(CodeGenerator* cgen) |
: cgen_(cgen), |
masm_(cgen->masm()), |
- elements_(0), |
+ elements_(cgen->scope()->num_parameters() |
+ + cgen->scope()->num_stack_slots() |
+ + kPreallocatedElements), |
parameter_count_(cgen->scope()->num_parameters()), |
local_count_(0), |
stack_pointer_(parameter_count_), // 0-based index of TOS. |