From ba9efd26b73f3e690eee6e9b5d3e750e4adb2ae1 Mon Sep 17 00:00:00 2001 From: "erik.corry@gmail.com" Date: Wed, 26 Aug 2009 12:22:34 +0000 Subject: [PATCH] Avoid triggering assert on 64 bit version. Review URL: http://codereview.chromium.org/174519 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2763 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/heap.cc b/src/heap.cc index 305f744af5..06b5866447 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -3257,6 +3257,10 @@ bool Heap::Setup(bool create_heap_objects) { void Heap::SetStackLimit(intptr_t limit) { + // We don't use this on x86-64 yet, but we need to remove the top + // bits or it won't be a valid Smi. This has no effect on 32 bit + // architectures. + limit &= 0xfffffffful; // Set up the special root array entry containing the stack guard. // This is actually an address, but the tag makes the GC ignore it. set_stack_limit(Smi::FromInt(limit >> kSmiTagSize));