aboutsummaryrefslogtreecommitdiff
path: root/src/library.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-06 20:02:30 -0700
committeralon@honor <none@none>2010-10-06 20:02:30 -0700
commit99f96653a706fc61d4be31ce8b45cd6d74c06c6a (patch)
tree8a997d03444ba0ee55d6ec8e68dbeb799be68915 /src/library.js
parent0390eea0b6d157be7d7e2ae0e388e16a3db92581 (diff)
Runtime system, and inlining of stackEnter/Exit
Diffstat (limited to 'src/library.js')
-rw-r--r--src/library.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/library.js b/src/library.js
index 68ad805a..08d62309 100644
--- a/src/library.js
+++ b/src/library.js
@@ -200,18 +200,18 @@ var Library = {
// We need to make sure no one else allocates unfreeable memory!
// We must control this entirely. So we don't even need to do
- // unfreeable allocations - the HEAP is ours, from HEAPTOP up.
+ // unfreeable allocations - the HEAP is ours, from STATICTOP up.
// TODO: We could in theory slice off the top of the HEAP when
// sbrk gets a negative increment in |bytes|...
var self = arguments.callee;
- if (!self.HEAPTOP) {
- HEAPTOP = alignMemoryPage(HEAPTOP);
- self.HEAPTOP = HEAPTOP;
+ if (!self.STATICTOP) {
+ STATICTOP = alignMemoryPage(STATICTOP);
+ self.STATICTOP = STATICTOP;
self.DATASIZE = 0;
} else {
- assert(self.HEAPTOP == HEAPTOP, "Noone should touch the heap!");
+ assert(self.STATICTOP == STATICTOP, "Noone should touch the heap!");
}
- var ret = HEAPTOP + self.DATASIZE;
+ var ret = STATICTOP + self.DATASIZE;
self.DATASIZE += alignMemoryPage(bytes);
return ret; // previous break location
},