Revision: 4603
Author: [email protected]
Date: Thu May 6 04:59:10 2010
Log: Allocate the right number of fast context slots on X64 and ARM. Port
from ia32.
This is ported from change 3505 on ia32.
Review URL: http://codereview.chromium.org/1992003
http://code.google.com/p/v8/source/detail?r=4603
Modified:
/branches/bleeding_edge/src/arm/codegen-arm.cc
/branches/bleeding_edge/src/x64/codegen-x64.cc
=======================================
--- /branches/bleeding_edge/src/arm/codegen-arm.cc Thu May 6 02:35:18 2010
+++ /branches/bleeding_edge/src/arm/codegen-arm.cc Thu May 6 04:59:10 2010
@@ -191,7 +191,7 @@
frame_->AllocateStackSlots();
VirtualFrame::SpilledScope spilled_scope(frame_);
- int heap_slots = scope()->num_heap_slots();
+ int heap_slots = scope()->num_heap_slots() -
Context::MIN_CONTEXT_SLOTS;
if (heap_slots > 0) {
// Allocate local context.
// Get outer context and create a new context based on it.
=======================================
--- /branches/bleeding_edge/src/x64/codegen-x64.cc Thu May 6 03:31:34 2010
+++ /branches/bleeding_edge/src/x64/codegen-x64.cc Thu May 6 04:59:10 2010
@@ -360,7 +360,7 @@
frame_->AllocateStackSlots();
// Allocate the local context if needed.
- int heap_slots = scope()->num_heap_slots();
+ int heap_slots = scope()->num_heap_slots() -
Context::MIN_CONTEXT_SLOTS;
if (heap_slots > 0) {
Comment cmnt(masm_, "[ allocate local context");
// Allocate local context.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev