Commit Graph

61 Commits

Author SHA1 Message Date
Tobias Koppers 949890acdf
Merge pull request #7472 from webpack/bugfix/error-origin-loc
Cleanup error location and origin information
2018-06-04 11:16:48 +02:00
Tobias Koppers 53103a9690 Cleanup error location and origin information 2018-06-04 10:35:46 +02:00
Tobias Koppers e9195c40dc
Merge pull request #7466 from xtuc/fix-wasm-keep-imports
wasm: keep imports
2018-06-04 09:02:50 +02:00
Tobias Koppers 9a6d9c7a06 rename to externalExports 2018-06-02 18:00:22 +02:00
Tobias Koppers 1e4b1c7212 create correct init for float types 2018-06-02 17:57:58 +02:00
Tobias Koppers 1e4d2b7fe7 handle reexported wasm globals in JS wrapper code 2018-06-02 17:20:58 +02:00
Sven SAULEAU 8a6c722ca6
fix(wasm): keep imports 2018-06-02 15:51:26 +02:00
Tobias Koppers 53d26bfc96 merge rewriteGlobalsReferingImportedGlobals into rewriteImportedGlobals 2018-05-30 10:49:12 +02:00
Tobias Koppers 04d9c8ab59 Merge branch 'master' into feat-wasm-global-in-global-initilizer2 2018-05-29 21:07:22 +02:00
Tobias Koppers 8e6a012dbb
Merge pull request #7432 from webpack/add_brackets
Add brackets for multiline if/for statements
2018-05-29 20:17:00 +02:00
Florent Cailhol 2a9452e51b Add brackets for multiline if/for statements 2018-05-29 15:45:44 +02:00
Sven SAULEAU 23795ba666
fix(wasm): preserve global ordering 2018-05-29 14:52:29 +02:00
Sven SAULEAU d6e9624c4a
Merge branch 'master' into feat-wasm-global-in-global-initilizer2 2018-05-29 14:24:26 +02:00
Tobias Koppers 909a2ac8d0 fix small bug in wasm runtime 2018-05-28 23:35:29 +02:00
Sven SAULEAU 38604c3cb0
feat: WIP add global into runtime 2018-05-28 16:56:06 +02:00
Sven SAULEAU fd4e84b36f
fix(wasm): correct initializer type for rewritten globals 2018-05-28 14:55:40 +02:00
Sven SAULEAU 6d8bc91a9b
feat: add missing preprocessing 2018-05-21 14:07:39 +02:00
Sven SAULEAU d7d82b25d5
refactor : use AST utils 2018-05-16 13:22:46 +02:00
Tobias Koppers cd7980e2a8 add comment about the microtask delay 2018-05-12 10:25:17 +02:00
Tobias Koppers 22ec60434d lint and type 2018-05-11 21:02:37 +02:00
Tobias Koppers 42c0214254 move common code into separate module 2018-05-11 21:02:36 +02:00
Tobias Koppers 08e72f5468 fix compat types list 2018-05-11 20:59:21 +02:00
Tobias Koppers ee0b5afc44 generate shorter runtime code for the imports map 2018-05-11 20:59:20 +02:00
Tobias Koppers cb3a0ed08c enforce direct import when types are incompatible with JS types 2018-05-11 20:59:20 +02:00
Tobias Koppers fb29d633db Mangle import names and module requests 2018-05-11 20:57:19 +02:00
Tobias Koppers f903cd3ef9 mangle exports of wasm modules
mangle webpack init function
store WebAssembly.Instance.exports directly
connect wasm modules directly when already cached
2018-05-11 20:57:18 +02:00
Tobias Koppers e2c8f3d501 remove passing AST, redecode AST in Generator 2018-05-11 16:46:33 +02:00
Tobias Koppers 85ef634389 remove _ast variable, add WeakMap 2018-05-10 20:19:30 +02:00
Sven SAULEAU 8bdc8ad646
refactor: remove type cast 2018-05-09 17:53:25 +02:00
Sven SAULEAU d72f7c6b1c
feat: store wasm ast on the module 2018-05-09 17:47:05 +02:00
Sven SAULEAU d491fdc786
feat: uses new APIs 2018-05-09 17:40:38 +02:00
Tobias Koppers f2ad440de8 More strict linting of jsdocs
Use TODO over any when type is possible
2018-05-08 14:53:33 +02:00
Tobias Koppers e90b766beb fix type issue 2018-05-07 11:19:13 +02:00
Sven SAULEAU 42379540f8
fix(wasm): correct exported func index 2018-05-07 09:49:14 +02:00
Sven SAULEAU 3ade8a0a6f
fix(wasm): ignore code section in generator 2018-05-04 18:57:38 +02:00
Sven SAULEAU 1bc7657eab
fix: handle empty modules in dependecies 2018-05-04 18:52:07 +02:00
Sven SAULEAU 9cc4ebb8d8
fix: generation and bump dep 2018-05-04 15:39:26 +02:00
Tobias Koppers 4702ee9016 Use compile/compileStreaming when importObject is a Promise 2018-04-30 08:35:06 +02:00
Tobias Koppers 81873932cb pretty 2018-04-30 07:29:53 +02:00
Tobias Koppers 2be62688c5 update for breaking change in dependency 2018-04-29 21:06:59 +02:00
Tobias Koppers 87a798c992 update for changed API 2018-04-28 11:38:34 +02:00
Tobias Koppers cd6eec18e3 delay import object creating until all promises has been initialized 2018-04-28 11:29:46 +02:00
Tobias Koppers 054ba39898 make wasm to wasm Table and Memory exports possible 2018-04-28 11:09:13 +02:00
Tobias Koppers 502bfe4181 improve hashing for wasm 2018-04-28 10:02:12 +02:00
Tobias Koppers b72e363f03 formatting for output code, nitpicks 2018-04-28 09:57:21 +02:00
Tobias Koppers 9156be961d rename and move BaseWasmMainTemplatePlugin
align usage with other plugins
2018-04-27 19:02:02 +02:00
Tobias Koppers 82a71be1dc Cleanup, refactoring, types 2018-04-27 18:53:07 +02:00
Sven SAULEAU 96f7ba8d8f
refactor: use safer id for init func 2018-03-29 14:53:59 +02:00
Sven SAULEAU de9ab747e2
fix: elimante falsy values 2018-03-29 13:52:26 +02:00
Sven SAULEAU 0476eb4499
Merge branch 'master' into feat-rewrite-wasm 2018-03-29 12:35:48 +02:00