Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Unified Diff: src/heap.cc

Issue 174517: * Make stack/preemption guard faster on ARM by putting stack... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/heap.h ('K') | « src/heap.h ('k') | src/v8.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap.cc
===================================================================
--- src/heap.cc (revision 2758)
+++ src/heap.cc (working copy)
@@ -3256,6 +3256,15 @@
}
+void Heap::SetStackLimit(intptr_t limit) {
+ // Set up the special root array entry is the stack guard.
Mads Ager (chromium) 2009/08/26 10:09:28 is -> containing?
+ // This is actually an address, but the tag makes the GC ignore it.
+ limit &= ~kSmiTagMask;
+ limit |= kSmiTag;
Mads Ager (chromium) 2009/08/26 10:09:28 Do you need this? You should be able to remove th
+ set_stack_limit(Smi::FromInt(limit >> kSmiTagSize));
+}
+
+
void Heap::TearDown() {
GlobalHandles::TearDown();
« src/heap.h ('K') | « src/heap.h ('k') | src/v8.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698