Reviewers: Kasper Lund,
Message:
A tiny review for you.
Description:
Allocate the right number of fast context slots on X64. Ported from ia32.
This is ported from change 3505 on ia32.
Please review this at http://codereview.chromium.org/1992003/show
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/x64/codegen-x64.cc
Index: src/x64/codegen-x64.cc
===================================================================
--- src/x64/codegen-x64.cc (revision 4602)
+++ src/x64/codegen-x64.cc (working copy)
@@ -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