summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* do not add memoryBase/tableBase if already thereAlon Zakai2016-12-301-4/+4
|
* memoryBase and tableBase should not be mutable, as we need to use them in ↵Alon Zakai2016-12-301-10/+15
| | | | segment/element offsets
* emit globals before table and memory, because they may use a global for ↵Alon Zakai2016-12-301-4/+4
| | | | their element/segment offsets
* Merge pull request #859 from WebAssembly/linkingAlon Zakai2016-12-2715-154/+369
|\ | | | | Dynamic linking
| * handle imports in tables in interpreterAlon Zakai2016-12-071-3/+12
| |
| * properly legalize imported table elementsAlon Zakai2016-12-071-0/+9
| |
| * fix legalization issues with f32sAlon Zakai2016-12-071-2/+2
| |
| * commentAlon Zakai2016-12-071-1/+1
| |
| * lower min and max in asm2wasm in wasm f*.min/maxAlon Zakai2016-12-071-1/+29
| |
| * make legalizeJSInterface handle f32s as well, which are not valid in asm.js ffisAlon Zakai2016-12-072-6/+19
| |
| * convert ftCall_* and mftCall_* into table callsAlon Zakai2016-12-071-7/+36
| |
| * support asm.js numeric exports by creating a global and exporting thatAlon Zakai2016-12-071-16/+35
| |
| * add a RemoveUnusedModuleElements pass, and make LegalizeJSInterface create ↵Alon Zakai2016-12-079-115/+198
| | | | | | | | TempRet0 if needed (otherwise we might remove it before we use it)
| * use tableBase for the table segmentsAlon Zakai2016-12-071-1/+1
| |
| * export the wasm table on ModuleAlon Zakai2016-12-071-0/+1
| |
| * use wasmMaxTableSizeAlon Zakai2016-12-071-1/+6
| |
| * fix the order of emitting the start sectionAlon Zakai2016-12-071-1/+1
| |
| * fix table import size when no maximum is providedAlon Zakai2016-12-071-1/+1
| |
| * add table-max option, and make it and mem-max set the limit to no limit for -1Alon Zakai2016-12-071-2/+21
| |
* | fix copy of call_indirect bug (#860)Alon Zakai2016-12-211-1/+1
| |
* | hash the type of nodes (#856)Alon Zakai2016-12-071-0/+10
| |
* | ignore unknown user sections, fixes #857 (#858)Alon Zakai2016-12-072-8/+13
| |
* | use exported static base and bump (#853)Alon Zakai2016-12-061-2/+2
|/
* Generate global imports separately from emscripten glue (#852)jgravelle-google2016-12-014-19/+21
|
* Handle importing globals in s2wasm (#843)jgravelle-google2016-11-306-36/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Handle importing globals in s2wasm * Make importedGlobals a set of Names, make Names hashable * Revert "Make importedGlobals a set of Names, make Names hashable" This reverts commit 1d0ca7a5e3839b15ca60593330979864c9c3ed60. * Refactor relocation parsing to handle expressions directly * PR Feedback - Move comment where it belongs - Add comment about ownership to addRelocation - Remove do-nothing parseImportGlobal * Reword "imported globals" to "imported objects" - Flip isObjectImported to isObjectImplemented, for consistency * Add tests for s2wasm globals. Also implement import relocation expression handling * Simplify globals.s test * Fix memory leak of relocation * Use unique_ptr instead of delete in getRelocatableExpression
* Fix regression from #850 (#851)Alon Zakai2016-11-303-56/+37
| | | | | | * fix regression from #850 - it is not always safe to fold added offsets into load/store offsets, as the add wraps but offset does not * small refactoring to simplify asm2wasm pass invocation
* Optimize added factors into load/store offsets (#850)Alon Zakai2016-11-291-0/+40
| | | | | * optimize added factors into load/store offsets, removing the add * optimize offset of load/store of a constant into the constant
* more consistent placement of & and *, on the type (#848)Alon Zakai2016-11-283-105/+111
|
* increase limit in RelooperJumpThreading (#847)Alon Zakai2016-11-281-3/+3
|
* Wrap description (#839)Loo Rong Jie2016-11-283-5/+32
|
* fix a reordering bug in merge-blocks (#846)Alon Zakai2016-11-251-2/+6
|
* add --mem-max option to set the maximum size of memory, overriding the ↵Alon Zakai2016-11-111-0/+10
| | | | default (which is the normal size of memory if no growth, or infinity if growth) (#837)
* Run wasm natively by default, no fallbacks to interpreting (#838)Alon Zakai2016-11-111-2/+2
| | | | | | * run wasm natively by default, no fallbacks to interpreting * improve error message, suggesting people add methods if they want more
* improve memory growth ignoring code in asm2wasm, we may not have the marker ↵Alon Zakai2016-11-111-15/+21
| | | | symbols (e.g. in ONLY_MY_CODE that is the case) (#835)
* Fix Windows colors (#833)Loo Rong Jie2016-11-111-3/+2
| | | | * Fix Windows colors and update README.md
* show a warning with guidance when a memory size incompatibility issue makes ↵Alon Zakai2016-11-101-0/+3
| | | | wasm compilation fail (#834)
* emit entries in the Names section for imports as well, as was recently ↵Alon Zakai2016-11-091-3/+35
| | | | changed in the spec
* add a --symbolmap option to wasm-as, which emits a side file with the name ↵Alon Zakai2016-11-093-0/+21
| | | | mapping (similar to Names section, but external)
* support assigns of f32 to HEAP64 in asm2wasm (#830)Alon Zakai2016-11-071-1/+7
|
* handle a label setting inside the if-body of a label value in ↵Alon Zakai2016-11-061-1/+15
| | | | RelooperJumpThreading
* make ExtractFunction use an env var instead of a hardcoded stringAlon Zakai2016-11-061-2/+8
|
* improve local simplication: simplify without if/block structure values ↵Alon Zakai2016-11-062-7/+11
| | | | before coalesce, so that coalesce can remove all copies, then do another pass of full simplification after it
* add variants of simplify-locals with and without teeing and structural optsAlon Zakai2016-11-053-11/+49
|
* optimize booleans through i32.orAlon Zakai2016-11-041-2/+6
|
* remove-unused-brs after coalesce-localsAlon Zakai2016-11-041-1/+2
|
* Fixes fround of an unsigned integer (#821)Alon Zakai2016-11-041-1/+5
| | | | | | | | * fix fround of unsigned * add testing for f32 ops, and remove a duplicate test (now that f32 is on by default in wasm, we don't need to check with and without PRECISE_F32) * update wasm.js and binaryen.js
* Merge pull request #819 from WebAssembly/optimize-memoryAlon Zakai2016-11-015-2/+103
|\ | | | | Pack memory segments
| * add a pass to optimize memory segments, and pack memory in asm2wasmAlon Zakai2016-11-015-1/+91
| |
| * add a --memory-base options to asm2wasm, to fix the memory base instead of ↵Alon Zakai2016-10-311-1/+12
| | | | | | | | depending on an import
* | fix large f32 consts, fixes #817 (#820)Alon Zakai2016-11-012-8/+10
| |