mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 02:31:41 +00:00
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:
@ -3,7 +3,7 @@
|
||||
(type $iiiiv (func (param i32 i32 i32 i32)))
|
||||
(type $II (func (param i64) (result i64)))
|
||||
(type $v (func))
|
||||
(import "env" "abort" (func $abort (param i32 i32 i32 i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\11\00\00\00~\00l\00i\00b\00/\00p\00o\00l\00y\00f\00i\00l\00l\00s\00.\00t\00s")
|
||||
(data (i32.const 48) "\10\00\00\00s\00t\00d\00/\00p\00o\00l\00y\00f\00i\00l\00l\00s\00.\00t\00s")
|
||||
@ -22,7 +22,7 @@
|
||||
)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 8)
|
||||
(i32.const 27)
|
||||
@ -85,7 +85,7 @@
|
||||
)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 8)
|
||||
(i32.const 2)
|
||||
@ -111,7 +111,7 @@
|
||||
)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 8)
|
||||
(i32.const 27)
|
||||
@ -177,7 +177,7 @@
|
||||
)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 8)
|
||||
(i32.const 2)
|
||||
@ -203,7 +203,7 @@
|
||||
)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 8)
|
||||
(i32.const 2)
|
||||
@ -236,7 +236,7 @@
|
||||
(i32.const 1)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 8)
|
||||
(i32.const 2)
|
||||
@ -289,7 +289,7 @@
|
||||
(i32.const 1)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 8)
|
||||
(i32.const 27)
|
||||
@ -330,7 +330,7 @@
|
||||
(i32.const 1)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 8)
|
||||
(i32.const 27)
|
||||
@ -376,7 +376,7 @@
|
||||
(i32.const 48042)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 4)
|
||||
@ -396,7 +396,7 @@
|
||||
(i32.const 48042)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 5)
|
||||
@ -413,7 +413,7 @@
|
||||
(i32.const -573785174)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 8)
|
||||
@ -430,7 +430,7 @@
|
||||
(i32.const -573785174)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 9)
|
||||
@ -447,7 +447,7 @@
|
||||
(i64.const -2464388556401798912)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 12)
|
||||
@ -464,7 +464,7 @@
|
||||
(i64.const -2464388556401798912)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 13)
|
||||
@ -481,7 +481,7 @@
|
||||
(i32.const -573785174)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 16)
|
||||
@ -498,7 +498,7 @@
|
||||
(i32.const -573785174)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 17)
|
||||
@ -518,7 +518,7 @@
|
||||
(i32.const 48042)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 20)
|
||||
@ -538,7 +538,7 @@
|
||||
(i32.const 48042)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 21)
|
||||
@ -555,7 +555,7 @@
|
||||
(i32.const -7816278)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 24)
|
||||
@ -572,7 +572,7 @@
|
||||
(i32.const -7816278)
|
||||
)
|
||||
(block
|
||||
(call $abort
|
||||
(call $~lib/env/abort
|
||||
(i32.const 0)
|
||||
(i32.const 48)
|
||||
(i32.const 25)
|
||||
|
Reference in New Issue
Block a user