mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 06:21:29 +00:00
Use 'super' in Uint8ClampedArray#__set
This commit is contained in:
@ -11,12 +11,11 @@
|
||||
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
||||
(global $std/typedarray/arr (mut i32) (i32.const 0))
|
||||
(global $std/typedarray/clampedArr (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 204))
|
||||
(global $HEAP_BASE i32 (i32.const 164))
|
||||
(memory $0 1)
|
||||
(data (i32.const 4) "\11\00\00\00s\00t\00d\00/\00t\00y\00p\00e\00d\00a\00r\00r\00a\00y\00.\00t\00s")
|
||||
(data (i32.const 44) "\1b\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00t\00y\00p\00e\00d\00a\00r\00r\00a\00y\00.\00t\00s")
|
||||
(data (i32.const 104) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
||||
(data (i32.const 164) "\12\00\00\00~\00l\00i\00b\00/\00t\00y\00p\00e\00d\00a\00r\00r\00a\00y\00.\00t\00s")
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $~lib/internal/arraybuffer/computeSize (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
@ -1628,7 +1627,7 @@
|
||||
)
|
||||
(get_local $2)
|
||||
)
|
||||
(func $~lib/typedarray/Uint8ClampedArray#__set (; 17 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/internal/typedarray/TypedArray<u8>#__set (; 17 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(local $3 i32)
|
||||
(if
|
||||
(i32.ge_u
|
||||
@ -1647,8 +1646,8 @@
|
||||
(block
|
||||
(call $abort
|
||||
(i32.const 0)
|
||||
(i32.const 164)
|
||||
(i32.const 32)
|
||||
(i32.const 44)
|
||||
(i32.const 47)
|
||||
(i32.const 42)
|
||||
)
|
||||
(unreachable)
|
||||
@ -1664,20 +1663,30 @@
|
||||
)
|
||||
(get_local $1)
|
||||
)
|
||||
(i32.trunc_u/f64
|
||||
(f64.max
|
||||
(f64.const 0)
|
||||
(f64.min
|
||||
(f64.const 255)
|
||||
(f64.convert_s/i32
|
||||
(get_local $2)
|
||||
(get_local $2)
|
||||
)
|
||||
)
|
||||
(func $~lib/typedarray/Uint8ClampedArray#__set (; 18 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(call $~lib/internal/typedarray/TypedArray<u8>#__set
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(i32.trunc_u/f64
|
||||
(f64.max
|
||||
(f64.const 0)
|
||||
(f64.min
|
||||
(f64.const 255)
|
||||
(f64.convert_s/i32
|
||||
(get_local $2)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $~lib/internal/typedarray/TypedArray<u8>#__get (; 18 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/internal/typedarray/TypedArray<u8>#__get (; 19 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
(if
|
||||
(i32.ge_u
|
||||
@ -1715,7 +1724,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $start (; 19 ;) (type $v)
|
||||
(func $start (; 20 ;) (type $v)
|
||||
(set_global $~lib/allocator/arena/startOffset
|
||||
(i32.and
|
||||
(i32.add
|
||||
|
@ -19,12 +19,11 @@
|
||||
(global $std/typedarray/arr (mut i32) (i32.const 0))
|
||||
(global $std/typedarray/clampedArr (mut i32) (i32.const 0))
|
||||
(global $std/typedarray/MAX_F64LENGTH i32 (i32.const 134217727))
|
||||
(global $HEAP_BASE i32 (i32.const 204))
|
||||
(global $HEAP_BASE i32 (i32.const 164))
|
||||
(memory $0 1)
|
||||
(data (i32.const 4) "\11\00\00\00s\00t\00d\00/\00t\00y\00p\00e\00d\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
||||
(data (i32.const 44) "\1b\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00t\00y\00p\00e\00d\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
||||
(data (i32.const 104) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")
|
||||
(data (i32.const 164) "\12\00\00\00~\00l\00i\00b\00/\00t\00y\00p\00e\00d\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $~lib/internal/arraybuffer/computeSize (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
@ -2522,14 +2521,13 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $~lib/typedarray/Uint8ClampedArray#__set (; 29 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/internal/typedarray/TypedArray<u8>#__set (; 29 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
(local $6 i32)
|
||||
(local $7 i32)
|
||||
(local $8 i32)
|
||||
(local $9 i32)
|
||||
(set_local $3
|
||||
(i32.load offset=4
|
||||
(get_local $0)
|
||||
@ -2554,14 +2552,47 @@
|
||||
(block
|
||||
(call $abort
|
||||
(i32.const 0)
|
||||
(i32.const 164)
|
||||
(i32.const 32)
|
||||
(i32.const 44)
|
||||
(i32.const 47)
|
||||
(i32.const 42)
|
||||
)
|
||||
(unreachable)
|
||||
)
|
||||
)
|
||||
(set_local $5
|
||||
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u8>|inlined.0
|
||||
(set_local $5
|
||||
(i32.load
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(set_local $6
|
||||
(get_local $1)
|
||||
)
|
||||
(set_local $7
|
||||
(get_local $2)
|
||||
)
|
||||
(set_local $8
|
||||
(get_local $3)
|
||||
)
|
||||
(i32.store8 offset=8
|
||||
(i32.add
|
||||
(i32.add
|
||||
(get_local $5)
|
||||
(get_local $8)
|
||||
)
|
||||
(i32.shl
|
||||
(get_local $6)
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(get_local $7)
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $~lib/typedarray/Uint8ClampedArray#__set (; 30 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(call $~lib/internal/typedarray/TypedArray<u8>#__set
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
(i32.and
|
||||
(i32.trunc_u/f64
|
||||
(f64.max
|
||||
@ -2577,37 +2608,8 @@
|
||||
(i32.const 255)
|
||||
)
|
||||
)
|
||||
(block $~lib/internal/arraybuffer/storeUnsafeWithOffset<u8>|inlined.0
|
||||
(set_local $6
|
||||
(i32.load
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(set_local $7
|
||||
(get_local $1)
|
||||
)
|
||||
(set_local $8
|
||||
(get_local $5)
|
||||
)
|
||||
(set_local $9
|
||||
(get_local $3)
|
||||
)
|
||||
(i32.store8 offset=8
|
||||
(i32.add
|
||||
(i32.add
|
||||
(get_local $6)
|
||||
(get_local $9)
|
||||
)
|
||||
(i32.shl
|
||||
(get_local $7)
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(get_local $8)
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $~lib/internal/typedarray/TypedArray<u8>#__get (; 30 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/internal/typedarray/TypedArray<u8>#__get (; 31 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
@ -2674,7 +2676,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $start (; 31 ;) (type $v)
|
||||
(func $start (; 32 ;) (type $v)
|
||||
(if
|
||||
(i32.eqz
|
||||
(i32.eq
|
||||
|
Reference in New Issue
Block a user