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
This commit is contained in:
erik.corry@gmail.com 2009-08-26 12:22:34 +00:00
parent 681440e273
commit ba9efd26b7

View File

@ -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));