mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-25 04:31:43 +00:00
Rename memory instructions; Rework constant handling
This commit is contained in:
@ -22,7 +22,7 @@
|
||||
(export "bench" (func $assembly/index/bench))
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $~lib/allocator/arena/allocate_memory (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -116,7 +116,7 @@
|
||||
(block
|
||||
(f64.store
|
||||
(tee_local $0
|
||||
(call $~lib/allocator/arena/allocate_memory
|
||||
(call $~lib/allocator/arena/__memory_allocate
|
||||
(i32.const 56)
|
||||
)
|
||||
)
|
||||
@ -150,7 +150,7 @@
|
||||
)
|
||||
(get_local $0)
|
||||
)
|
||||
(func $~lib/memory/set_memory (; 3 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/memory/memory.fill (; 3 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i64)
|
||||
(if
|
||||
@ -500,7 +500,7 @@
|
||||
)
|
||||
(i32.store
|
||||
(tee_local $3
|
||||
(call $~lib/allocator/arena/allocate_memory
|
||||
(call $~lib/allocator/arena/__memory_allocate
|
||||
(i32.shl
|
||||
(i32.const 1)
|
||||
(i32.sub
|
||||
@ -529,7 +529,7 @@
|
||||
(block
|
||||
(i32.store
|
||||
(tee_local $0
|
||||
(call $~lib/allocator/arena/allocate_memory
|
||||
(call $~lib/allocator/arena/__memory_allocate
|
||||
(i32.const 8)
|
||||
)
|
||||
)
|
||||
@ -549,7 +549,7 @@
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
(call $~lib/memory/set_memory
|
||||
(call $~lib/memory/memory.fill
|
||||
(i32.add
|
||||
(get_local $3)
|
||||
(i32.const 8)
|
||||
@ -693,7 +693,7 @@
|
||||
(block
|
||||
(i32.store
|
||||
(tee_local $2
|
||||
(call $~lib/allocator/arena/allocate_memory
|
||||
(call $~lib/allocator/arena/__memory_allocate
|
||||
(i32.const 4)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user