mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-26 05:01:52 +00:00
Rename memory instructions; Rework constant handling
This commit is contained in:
@ -4,10 +4,11 @@
|
||||
(type $Fi (func (param f64) (result i32)))
|
||||
(type $FFFF (func (param f64 f64 f64) (result f64)))
|
||||
(global $../../examples/mandelbrot/assembly/index/NUM_COLORS i32 (i32.const 2048))
|
||||
(global $~lib/math/NativeMath.LN2 f64 (f64.const 0.6931471805599453))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(memory $0 0)
|
||||
(export "computeLine" (func $../../examples/mandelbrot/assembly/index/computeLine))
|
||||
(export "memory" (memory $0))
|
||||
(export "computeLine" (func $../../examples/mandelbrot/assembly/index/computeLine))
|
||||
(func $~lib/math/NativeMath.log (; 0 ;) (type $FF) (param $0 f64) (result f64)
|
||||
(local $1 i64)
|
||||
(local $2 i32)
|
||||
@ -571,7 +572,7 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(f64.const 0.6931471805599453)
|
||||
(get_global $~lib/math/NativeMath.LN2)
|
||||
)
|
||||
)
|
||||
(set_local $17
|
||||
@ -583,7 +584,7 @@
|
||||
(f64.mul
|
||||
(f64.convert_s/i32
|
||||
(i32.sub
|
||||
(i32.const 2048)
|
||||
(get_global $../../examples/mandelbrot/assembly/index/NUM_COLORS)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
@ -608,7 +609,7 @@
|
||||
)
|
||||
)
|
||||
(i32.sub
|
||||
(i32.const 2048)
|
||||
(get_global $../../examples/mandelbrot/assembly/index/NUM_COLORS)
|
||||
(i32.const 1)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user