diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-19 20:30:03 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-19 20:36:02 -0700 |
commit | 31872fbd01ca23962d954ca40232c7b8bfde58fe (patch) | |
tree | cf05b59fb1451f137e0ff96ef56bc9c184329099 /src/modules.js | |
parent | 9089dc78a6c7fd21be5fc115451996018779dd40 (diff) |
support for Runtime.addFunction in asm.js
Diffstat (limited to 'src/modules.js')
-rw-r--r-- | src/modules.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules.js b/src/modules.js index 5b5f7947..7a769846 100644 --- a/src/modules.js +++ b/src/modules.js @@ -234,7 +234,7 @@ var Functions = { unimplementedFunctions: {}, // library etc. functions that we need to index, maps id to signature indexedFunctions: {}, - nextIndex: 2, // Start at a non-0 (even, see below) value + nextIndex: (ASM_JS ? 2*RESERVED_FUNCTION_POINTERS : 0) + 2, // Start at a non-0 (even, see below) value blockAddresses: {}, // maps functions to a map of block labels to label ids |