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 | |
parent | 8024b2b5392e0dc1d1f4545e46542d520c4f1140 (diff) |
Added some comments
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | src/preamble.js | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -49,4 +49,5 @@ a license to everyone to use it as detailed in LICENSE.) * Manuel Schölling <manuel.schoelling@gmx.de> * Bruce Mitchener, Jr. <bruce.mitchener@gmail.com> * Michael Bishop <mbtyke@gmail.com> +* Lorant Pinter <lorant.pinter@prezi.com> 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; |