diff options
author | Lorant Pinter <lorant.pinter@prezi.com> | 2013-02-21 02:49:50 +0100 |
---|---|---|
committer | Lorant Pinter <lorant.pinter@prezi.com> | 2013-02-21 02:49:50 +0100 |
commit | 73f24426c1bdfd2ea9c6d42d8466bbdb42a6a092 (patch) | |
tree | b5bd47f704fbdddb5ef993248c353b83160fa4d4 /src | |
parent | 8024b2b5392e0dc1d1f4545e46542d520c4f1140 (diff) |
Added some comments
Diffstat (limited to 'src')
-rw-r--r-- | src/preamble.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 98395200..24049283 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -470,6 +470,7 @@ function allocate(slab, types, allocator, ptr) { setValue(ret+i, curr, type); + // no need to look up size unless type changes, so cache it if (previousType !== type) { typeSize = Runtime.getNativeTypeSize(type); previousType = type; |