mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-07-02 16:11:49 +00:00
Rework constructor handling (#446)
This commit is contained in:
@ -537,38 +537,34 @@
|
||||
i32.store offset=20
|
||||
)
|
||||
(func $~lib/map/Map<String,usize>#constructor (; 9 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
get_local $0
|
||||
if (result i32)
|
||||
block (result i32)
|
||||
get_local $0
|
||||
else
|
||||
block (result i32)
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 24
|
||||
call $~lib/memory/memory.allocate
|
||||
set_local $1
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store offset=4
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store offset=8
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store offset=12
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store offset=16
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store offset=20
|
||||
get_local $1
|
||||
set_local $0
|
||||
end
|
||||
tee_local $0
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store offset=4
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store offset=8
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store offset=12
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store offset=16
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store offset=20
|
||||
get_local $0
|
||||
end
|
||||
tee_local $0
|
||||
call $~lib/map/Map<String,usize>#clear
|
||||
get_local $0
|
||||
)
|
||||
@ -601,38 +597,34 @@
|
||||
i32.store offset=20
|
||||
)
|
||||
(func $~lib/map/Map<usize,String>#constructor (; 11 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
get_local $0
|
||||
if (result i32)
|
||||
block (result i32)
|
||||
get_local $0
|
||||
else
|
||||
block (result i32)
|
||||
i32.eqz
|
||||
if
|
||||
i32.const 24
|
||||
call $~lib/memory/memory.allocate
|
||||
set_local $1
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store offset=4
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store offset=8
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store offset=12
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store offset=16
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.store offset=20
|
||||
get_local $1
|
||||
set_local $0
|
||||
end
|
||||
tee_local $0
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store offset=4
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store offset=8
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store offset=12
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store offset=16
|
||||
get_local $0
|
||||
i32.const 0
|
||||
i32.store offset=20
|
||||
get_local $0
|
||||
end
|
||||
tee_local $0
|
||||
call $~lib/map/Map<usize,String>#clear
|
||||
get_local $0
|
||||
)
|
||||
|
Reference in New Issue
Block a user