Move 'abort' out of builtins and make it overridable

Now defaults to 'env.abort' as imported in lib/env.ts, but can be overridden through '--use abort=someThingElseOrNothingAtAll'
This commit is contained in:
dcodeIO
2018-05-21 18:48:29 +02:00
parent 940392f463
commit 73417a9a06
83 changed files with 5836 additions and 5833 deletions

View File

@ -3,7 +3,7 @@
(type $iii (func (param i32 i32) (result i32)))
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $iiiiv (func (param i32 i32 i32 i32)))
(import "env" "abort" (func $abort (param i32 i32 i32 i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(global $~lib/internal/allocator/AL_BITS i32 (i32.const 3))
(global $~lib/internal/allocator/AL_SIZE i32 (i32.const 8))
(global $~lib/internal/allocator/AL_MASK i32 (i32.const 7))
@ -227,7 +227,7 @@
)
)
(block
(call $abort
(call $~lib/env/abort
(i32.const 0)
(i32.const 12)
(i32.const 231)