Rename memory instructions; Rework constant handling

This commit is contained in:
dcodeIO
2018-07-18 23:49:32 +02:00
parent 34e8facfdc
commit a1b75b69b7
170 changed files with 26392 additions and 5185 deletions

View File

@ -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)
)
)