mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-25 04:31:43 +00:00
rtti & refactoring
This commit is contained in:
@ -4,14 +4,11 @@
|
||||
(import "declare" "externalConstant" (global $declare/externalConstant i32))
|
||||
(import "declare" "my.externalConstant" (global $declare/my.externalConstant i32))
|
||||
(import "declare" "externalFunction" (func $declare/externalFunction))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
|
||||
(import "declare" "my.externalFunction" (func $declare/my.externalFunction))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\01\00\00\00\14\00\00\00d\00e\00c\00l\00a\00r\00e\00.\00t\00s")
|
||||
(table $0 1 funcref)
|
||||
(elem (i32.const 0) $null)
|
||||
(data (i32.const 8) "\10\00\00\00\14\00\00\00d\00e\00c\00l\00a\00r\00e\00.\00t\00s")
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $start:declare (; 3 ;) (type $FUNCSIG$v)
|
||||
call $declare/externalFunction
|
||||
@ -23,7 +20,7 @@
|
||||
i32.const 16
|
||||
i32.const 5
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
call $declare/my.externalFunction
|
||||
@ -35,7 +32,7 @@
|
||||
i32.const 16
|
||||
i32.const 13
|
||||
i32.const 0
|
||||
call $~lib/env/abort
|
||||
call $~lib/builtins/abort
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
|
Reference in New Issue
Block a user