2018-04-23 02:43:03 +02:00
|
|
|
(module
|
2018-04-23 15:04:04 +02:00
|
|
|
(type $v (func))
|
2018-05-21 10:31:00 +02:00
|
|
|
(type $i (func (result i32)))
|
2018-04-23 22:49:04 +02:00
|
|
|
(type $iFFFFFFFi (func (param i32 f64 f64 f64 f64 f64 f64 f64) (result i32)))
|
|
|
|
(type $ii (func (param i32) (result i32)))
|
2018-04-23 02:43:03 +02:00
|
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
|
|
(type $iiiv (func (param i32 i32 i32)))
|
|
|
|
(type $iFFFi (func (param i32 f64 f64 f64) (result i32)))
|
2018-05-21 10:31:00 +02:00
|
|
|
(type $F (func (result f64)))
|
2018-04-23 02:43:03 +02:00
|
|
|
(type $iFv (func (param i32 f64)))
|
|
|
|
(type $iF (func (param i32) (result f64)))
|
2018-04-23 15:04:04 +02:00
|
|
|
(type $iv (func (param i32)))
|
2018-07-21 15:11:39 +03:00
|
|
|
(import "env" "memory" (memory $0 1))
|
2018-10-11 08:49:08 +02:00
|
|
|
(data (i32.const 8) "\0d\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
|
|
|
|
(data (i32.const 40) "\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")
|
|
|
|
(table 1 anyfunc)
|
|
|
|
(elem (i32.const 0) $null)
|
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-04-23 02:43:03 +02:00
|
|
|
(global $~lib/internal/allocator/AL_BITS i32 (i32.const 3))
|
|
|
|
(global $~lib/internal/allocator/AL_SIZE i32 (i32.const 8))
|
|
|
|
(global $~lib/internal/allocator/AL_MASK i32 (i32.const 7))
|
|
|
|
(global $~lib/internal/allocator/MAX_SIZE_32 i32 (i32.const 1073741824))
|
|
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
2018-07-19 02:10:04 +02:00
|
|
|
(global $~lib/math/NativeMath.PI f64 (f64.const 3.141592653589793))
|
2018-04-23 02:43:03 +02:00
|
|
|
(global $assembly/index/SOLAR_MASS f64 (f64.const 39.47841760435743))
|
|
|
|
(global $assembly/index/DAYS_PER_YEAR f64 (f64.const 365.24))
|
2018-04-23 15:04:04 +02:00
|
|
|
(global $assembly/index/system (mut i32) (i32.const 0))
|
2018-04-23 02:43:03 +02:00
|
|
|
(global $~lib/internal/arraybuffer/HEADER_SIZE i32 (i32.const 8))
|
|
|
|
(global $~lib/internal/arraybuffer/MAX_BLENGTH i32 (i32.const 1073741816))
|
2018-05-21 10:31:00 +02:00
|
|
|
(global $HEAP_BASE i32 (i32.const 100))
|
2018-07-19 02:10:04 +02:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-04-23 15:04:04 +02:00
|
|
|
(export "init" (func $assembly/index/init))
|
2018-04-23 02:43:03 +02:00
|
|
|
(export "step" (func $assembly/index/step))
|
|
|
|
(export "bench" (func $assembly/index/bench))
|
2018-07-22 02:55:46 +02:00
|
|
|
(export "getBody" (func $assembly/index/getBody))
|
2018-04-23 02:43:03 +02:00
|
|
|
(start $start)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-23 02:43:03 +02:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ ~lib/allocator/arena.ts:18:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(if
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ ~lib/allocator/arena.ts:18:6
|
2018-10-11 08:49:08 +02:00
|
|
|
(i32.gt_u
|
|
|
|
(get_local $0)
|
|
|
|
;;@ ~lib/allocator/arena.ts:18:13
|
|
|
|
(get_global $~lib/internal/allocator/MAX_SIZE_32)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/arena.ts:18:26
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/arena.ts:19:2
|
|
|
|
(set_local $1
|
|
|
|
;;@ ~lib/allocator/arena.ts:19:12
|
|
|
|
(get_global $~lib/allocator/arena/offset)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/arena.ts:20:2
|
|
|
|
(set_local $4
|
|
|
|
;;@ ~lib/allocator/arena.ts:20:15
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
;;@ ~lib/allocator/arena.ts:20:16
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
;;@ ~lib/allocator/arena.ts:20:22
|
|
|
|
(select
|
|
|
|
(tee_local $2
|
|
|
|
;;@ ~lib/allocator/arena.ts:20:33
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(tee_local $3
|
|
|
|
;;@ ~lib/allocator/arena.ts:20:39
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(i32.gt_u
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:20:44
|
|
|
|
(get_global $~lib/internal/allocator/AL_MASK)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:20:55
|
|
|
|
(i32.xor
|
|
|
|
;;@ ~lib/allocator/arena.ts:20:56
|
|
|
|
(get_global $~lib/internal/allocator/AL_MASK)
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/arena.ts:21:2
|
|
|
|
(set_local $5
|
|
|
|
;;@ ~lib/allocator/arena.ts:21:27
|
|
|
|
(current_memory)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/arena.ts:22:2
|
|
|
|
(if
|
|
|
|
;;@ ~lib/allocator/arena.ts:22:6
|
|
|
|
(i32.gt_u
|
|
|
|
(get_local $4)
|
|
|
|
;;@ ~lib/allocator/arena.ts:22:15
|
|
|
|
(i32.shl
|
|
|
|
(get_local $5)
|
|
|
|
;;@ ~lib/allocator/arena.ts:22:37
|
|
|
|
(i32.const 16)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/arena.ts:22:41
|
|
|
|
(block
|
|
|
|
;;@ ~lib/allocator/arena.ts:23:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $2
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:23:22
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.and
|
|
|
|
;;@ ~lib/allocator/arena.ts:23:23
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:23:24
|
|
|
|
(i32.sub
|
|
|
|
(get_local $4)
|
|
|
|
;;@ ~lib/allocator/arena.ts:23:33
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/arena.ts:23:39
|
|
|
|
(i32.const 65535)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/arena.ts:23:49
|
|
|
|
(i32.xor
|
|
|
|
;;@ ~lib/allocator/arena.ts:23:50
|
|
|
|
(i32.const 65535)
|
|
|
|
(i32.const -1)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:23:62
|
|
|
|
(i32.const 16)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:24:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $3
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:24:22
|
|
|
|
(select
|
|
|
|
(tee_local $3
|
|
|
|
;;@ ~lib/allocator/arena.ts:24:26
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
(tee_local $6
|
|
|
|
;;@ ~lib/allocator/arena.ts:24:39
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.gt_s
|
|
|
|
(get_local $3)
|
|
|
|
(get_local $6)
|
|
|
|
)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:25:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(if
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:25:8
|
|
|
|
(i32.lt_s
|
|
|
|
;;@ ~lib/allocator/arena.ts:25:15
|
|
|
|
(grow_memory
|
|
|
|
;;@ ~lib/allocator/arena.ts:25:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:25:35
|
|
|
|
(i32.const 0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:25:38
|
|
|
|
(if
|
|
|
|
;;@ ~lib/allocator/arena.ts:26:10
|
|
|
|
(i32.lt_s
|
|
|
|
;;@ ~lib/allocator/arena.ts:26:17
|
|
|
|
(grow_memory
|
|
|
|
;;@ ~lib/allocator/arena.ts:26:22
|
|
|
|
(get_local $2)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:26:37
|
|
|
|
(i32.const 0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:26:40
|
|
|
|
(unreachable)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/allocator/arena.ts:31:2
|
|
|
|
(set_global $~lib/allocator/arena/offset
|
|
|
|
;;@ ~lib/allocator/arena.ts:31:11
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/arena.ts:32:9
|
|
|
|
(get_local $1)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/memory/memory.allocate (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/memory.ts:41:4
|
2018-07-18 23:49:32 +02:00
|
|
|
(return
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/memory.ts:41:45
|
2018-07-18 23:49:32 +02:00
|
|
|
(call $~lib/allocator/arena/__memory_allocate
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/memory.ts:41:63
|
2018-07-18 23:49:32 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $assembly/index/Body#constructor (; 3 ;) (type $iFFFFFFFi) (param $0 i32) (param $1 f64) (param $2 f64) (param $3 f64) (param $4 f64) (param $5 f64) (param $6 f64) (param $7 f64) (result i32)
|
2018-04-23 22:49:04 +02:00
|
|
|
(local $8 i32)
|
|
|
|
(tee_local $0
|
|
|
|
(if (result i32)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $0
|
|
|
|
(block (result i32)
|
|
|
|
(set_local $8
|
2018-07-18 23:49:32 +02:00
|
|
|
(call $~lib/memory/memory.allocate
|
2018-04-23 22:49:04 +02:00
|
|
|
(i32.const 56)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(f64.store
|
|
|
|
(get_local $8)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(f64.store offset=8
|
|
|
|
(get_local $8)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(f64.store offset=16
|
|
|
|
(get_local $8)
|
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
(f64.store offset=24
|
|
|
|
(get_local $8)
|
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
(f64.store offset=32
|
|
|
|
(get_local $8)
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
(f64.store offset=40
|
|
|
|
(get_local $8)
|
|
|
|
(get_local $6)
|
|
|
|
)
|
|
|
|
(f64.store offset=48
|
|
|
|
(get_local $8)
|
|
|
|
(get_local $7)
|
|
|
|
)
|
|
|
|
(get_local $8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $assembly/index/Sun (; 4 ;) (type $i) (result i32)
|
2018-06-27 19:03:39 +02:00
|
|
|
;;@ assembly/index.ts:34:2
|
2018-06-24 01:04:24 +02:00
|
|
|
(call $assembly/index/Body#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
;;@ assembly/index.ts:33:4
|
|
|
|
(f64.const 0)
|
|
|
|
;;@ assembly/index.ts:33:9
|
|
|
|
(f64.const 0)
|
|
|
|
;;@ assembly/index.ts:33:14
|
|
|
|
(f64.const 0)
|
|
|
|
;;@ assembly/index.ts:33:19
|
|
|
|
(f64.const 0)
|
|
|
|
;;@ assembly/index.ts:33:24
|
|
|
|
(f64.const 0)
|
|
|
|
;;@ assembly/index.ts:33:29
|
|
|
|
(f64.const 0)
|
|
|
|
;;@ assembly/index.ts:33:34
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/SOLAR_MASS)
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $assembly/index/Jupiter (; 5 ;) (type $i) (result i32)
|
2018-06-27 19:03:39 +02:00
|
|
|
;;@ assembly/index.ts:46:2
|
2018-06-24 01:04:24 +02:00
|
|
|
(call $assembly/index/Body#constructor
|
|
|
|
(i32.const 0)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:39:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.const 4.841431442464721)
|
|
|
|
;;@ assembly/index.ts:40:4
|
|
|
|
(f64.const -1.1603200440274284)
|
|
|
|
;;@ assembly/index.ts:41:4
|
|
|
|
(f64.const -0.10362204447112311)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:42:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 0.001660076642744037)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:42:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:43:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 0.007699011184197404)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:43:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
|
|
|
;;@ assembly/index.ts:44:4
|
|
|
|
(f64.mul
|
|
|
|
(f64.const -6.90460016972063e-05)
|
|
|
|
;;@ assembly/index.ts:44:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:45:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 9.547919384243266e-04)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:45:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/SOLAR_MASS)
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $assembly/index/Saturn (; 6 ;) (type $i) (result i32)
|
2018-06-27 19:03:39 +02:00
|
|
|
;;@ assembly/index.ts:58:2
|
2018-06-24 01:04:24 +02:00
|
|
|
(call $assembly/index/Body#constructor
|
|
|
|
(i32.const 0)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:51:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.const 8.34336671824458)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:52:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.const 4.124798564124305)
|
|
|
|
;;@ assembly/index.ts:53:4
|
|
|
|
(f64.const -0.4035234171143214)
|
|
|
|
;;@ assembly/index.ts:54:4
|
|
|
|
(f64.mul
|
|
|
|
(f64.const -0.002767425107268624)
|
|
|
|
;;@ assembly/index.ts:54:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:55:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 0.004998528012349172)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:55:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:56:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 2.3041729757376393e-05)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:56:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:57:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 2.858859806661308e-04)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:57:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/SOLAR_MASS)
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $assembly/index/Uranus (; 7 ;) (type $i) (result i32)
|
2018-06-27 19:03:39 +02:00
|
|
|
;;@ assembly/index.ts:70:2
|
2018-06-24 01:04:24 +02:00
|
|
|
(call $assembly/index/Body#constructor
|
|
|
|
(i32.const 0)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:63:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.const 12.894369562139131)
|
|
|
|
;;@ assembly/index.ts:64:4
|
|
|
|
(f64.const -15.111151401698631)
|
|
|
|
;;@ assembly/index.ts:65:4
|
|
|
|
(f64.const -0.22330757889265573)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:66:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 0.002964601375647616)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:66:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:67:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 2.3784717395948095e-03)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:67:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
|
|
|
;;@ assembly/index.ts:68:4
|
|
|
|
(f64.mul
|
|
|
|
(f64.const -2.9658956854023756e-05)
|
|
|
|
;;@ assembly/index.ts:68:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:69:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 4.366244043351563e-05)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:69:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/SOLAR_MASS)
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $assembly/index/Neptune (; 8 ;) (type $i) (result i32)
|
2018-06-27 19:03:39 +02:00
|
|
|
;;@ assembly/index.ts:82:2
|
2018-06-24 01:04:24 +02:00
|
|
|
(call $assembly/index/Body#constructor
|
|
|
|
(i32.const 0)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:75:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.const 15.379697114850917)
|
|
|
|
;;@ assembly/index.ts:76:4
|
|
|
|
(f64.const -25.919314609987964)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:77:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.const 0.17925877295037118)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:78:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 2.6806777249038932e-03)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:78:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:79:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 0.001628241700382423)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:79:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
|
|
|
;;@ assembly/index.ts:80:4
|
|
|
|
(f64.mul
|
|
|
|
(f64.const -9.515922545197159e-05)
|
|
|
|
;;@ assembly/index.ts:80:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/DAYS_PER_YEAR)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:81:5
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.const 5.1513890204661145e-05)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:81:31
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/SOLAR_MASS)
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-19 02:10:04 +02:00
|
|
|
(func $~lib/internal/arraybuffer/computeSize (; 9 ;) (type $ii) (param $0 i32) (result i32)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:15:77
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.shl
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:15:9
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.const 1)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:15:21
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.sub
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:15:29
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.const 32)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:15:39
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.clz
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:15:48
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:15:61
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:15:75
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.const 1)
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $~lib/internal/arraybuffer/allocateUnsafe (; 10 ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-23 02:43:03 +02:00
|
|
|
(local $1 i32)
|
2018-10-11 08:49:08 +02:00
|
|
|
(local $2 i32)
|
|
|
|
;;@ ~lib/internal/arraybuffer.ts:23:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:23:9
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.le_u
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:23:28
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $~lib/internal/arraybuffer/MAX_BLENGTH)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-30 16:22:56 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 0)
|
2018-05-21 10:31:00 +02:00
|
|
|
(i32.const 40)
|
2018-10-11 08:49:08 +02:00
|
|
|
(i32.const 23)
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:25:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $1
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:28:20
|
|
|
|
(block $~lib/memory/memory.allocate|inlined.0 (result i32)
|
|
|
|
(set_local $2
|
|
|
|
;;@ ~lib/internal/arraybuffer.ts:28:29
|
|
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
|
|
;;@ ~lib/internal/arraybuffer.ts:28:41
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;@ ~lib/memory.ts:41:4
|
|
|
|
(br $~lib/memory/memory.allocate|inlined.0
|
|
|
|
;;@ ~lib/memory.ts:41:45
|
|
|
|
(call $~lib/allocator/arena/__memory_allocate
|
|
|
|
;;@ ~lib/memory.ts:41:63
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:30:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:30:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:30:21
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:31:39
|
2018-06-24 01:04:24 +02:00
|
|
|
(get_local $1)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $~lib/internal/memory/memset (; 11 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-04-23 02:43:03 +02:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i64)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:191:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(if
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:191:6
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.eqz
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:191:7
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:191:10
|
2018-04-23 02:43:03 +02:00
|
|
|
(return)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:192:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:192:12
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:192:18
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:193:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:193:12
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:193:19
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:193:23
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:193:26
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:194:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(if
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:194:6
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:194:11
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:194:14
|
2018-04-23 02:43:03 +02:00
|
|
|
(return)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:196:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:196:12
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:196:19
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:196:22
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:197:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:197:12
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:197:19
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:197:22
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:198:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:198:12
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:198:19
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:198:23
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:198:26
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:199:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:199:12
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:199:19
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:199:23
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:199:26
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:200:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(if
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:200:6
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:200:11
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 6)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:200:14
|
2018-04-23 02:43:03 +02:00
|
|
|
(return)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:201:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:201:12
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:201:19
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:201:22
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:202:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:202:12
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:202:19
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:202:23
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:202:26
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:203:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(if
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:203:6
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:203:11
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:203:14
|
2018-04-23 02:43:03 +02:00
|
|
|
(return)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:206:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $3
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:206:17
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.and
|
|
|
|
(i32.sub
|
|
|
|
(i32.const 0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:206:18
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:206:25
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:207:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:207:10
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:208:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:208:7
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:209:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:209:7
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const -4)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:211:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $4
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:211:17
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.mul
|
|
|
|
(i32.div_u
|
|
|
|
(i32.const -1)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:211:27
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 255)
|
|
|
|
)
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.and
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:211:33
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.const 255)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:214:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:214:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:214:19
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:215:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:215:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:215:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:215:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:215:27
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:216:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(if
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:216:6
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:216:11
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:216:14
|
2018-04-23 02:43:03 +02:00
|
|
|
(return)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:217:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:217:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:217:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:217:23
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:218:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:218:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:218:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:218:23
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:219:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:219:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:219:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:219:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:219:28
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:220:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:220:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:220:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:220:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:220:27
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:221:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(if
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:221:6
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.le_u
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:221:11
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:221:15
|
2018-04-23 02:43:03 +02:00
|
|
|
(return)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:222:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:222:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:222:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 12)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:222:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:223:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:223:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:223:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:223:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:224:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:224:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:224:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 20)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:224:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:225:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:225:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:225:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:225:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:226:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:226:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:226:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:226:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 28)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:226:28
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:227:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:227:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:227:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:227:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:227:28
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:228:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:228:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:228:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:228:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 20)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:228:28
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:229:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:229:13
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:229:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:229:24
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:229:28
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:232:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $3
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:232:6
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.const 24)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:232:11
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.and
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:232:12
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:232:19
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:233:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:233:10
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:234:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:234:7
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:237:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $5
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:237:17
|
2018-04-23 02:43:03 +02:00
|
|
|
(i64.or
|
|
|
|
(i64.extend_u/i32
|
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:237:28
|
2018-04-23 02:43:03 +02:00
|
|
|
(i64.shl
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:237:29
|
2018-04-23 02:43:03 +02:00
|
|
|
(i64.extend_u/i32
|
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:237:41
|
2018-04-23 02:43:03 +02:00
|
|
|
(i64.const 32)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:238:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(block $break|0
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:238:9
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:238:14
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 32)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
(block
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:238:18
|
2018-04-25 05:04:35 +02:00
|
|
|
(block
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:239:4
|
2018-04-25 05:04:35 +02:00
|
|
|
(i64.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:239:15
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:239:21
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $5)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:240:4
|
2018-04-25 05:04:35 +02:00
|
|
|
(i64.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:240:15
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:240:22
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:240:25
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $5)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:241:4
|
2018-04-25 05:04:35 +02:00
|
|
|
(i64.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:241:15
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:241:22
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:241:26
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $5)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:242:4
|
2018-04-25 05:04:35 +02:00
|
|
|
(i64.store
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:242:15
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:242:22
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:242:26
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $5)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:243:4
|
2018-04-25 05:04:35 +02:00
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:243:9
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 32)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:244:4
|
2018-04-25 05:04:35 +02:00
|
|
|
(set_local $0
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.add
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $0)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/memory.ts:244:12
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 32)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
(br $continue|0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $~lib/array/Array<Body>#constructor (; 12 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-25 05:04:35 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-10-11 08:49:08 +02:00
|
|
|
(local $5 i32)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:37:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(if
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:37:8
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.gt_u
|
|
|
|
(get_local $1)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:37:22
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.const 268435454)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:37:39
|
2018-06-27 19:03:39 +02:00
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 8)
|
2018-10-11 09:09:56 +02:00
|
|
|
(i32.const 37)
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.const 39)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
(unreachable)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:38:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $2
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:38:21
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.shl
|
|
|
|
(get_local $1)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:38:31
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.const 2)
|
2018-04-25 05:04:35 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:39:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $3
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:39:17
|
2018-10-11 08:49:08 +02:00
|
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:39:32
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:40:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.store
|
|
|
|
(tee_local $0
|
|
|
|
(if (result i32)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $0
|
|
|
|
(block (result i32)
|
|
|
|
(set_local $4
|
2018-07-18 23:49:32 +02:00
|
|
|
(call $~lib/memory/memory.allocate
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.const 8)
|
2018-04-25 05:04:35 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(get_local $4)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(i32.store offset=4
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $4)
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.const 0)
|
2018-04-23 22:49:04 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $4)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:40:19
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:41:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.store offset=4
|
|
|
|
(get_local $0)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:41:19
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:42:11
|
2018-10-11 08:49:08 +02:00
|
|
|
(block $~lib/memory/memory.fill|inlined.0
|
|
|
|
(set_local $4
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:43:6
|
2018-10-11 08:49:08 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:43:34
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_global $~lib/internal/arraybuffer/HEADER_SIZE)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $5
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:44:6
|
2018-10-11 08:49:08 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
;;@ ~lib/memory.ts:15:4
|
|
|
|
(call $~lib/internal/memory/memset
|
|
|
|
;;@ ~lib/memory.ts:15:11
|
|
|
|
(get_local $4)
|
|
|
|
;;@ ~lib/memory.ts:15:17
|
|
|
|
(get_local $5)
|
|
|
|
;;@ ~lib/memory.ts:15:20
|
|
|
|
(get_local $2)
|
2018-04-25 05:04:35 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $~lib/array/Array<Body>#__unchecked_set (; 13 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-04-25 05:04:35 +02:00
|
|
|
(local $3 i32)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:112:4
|
2018-04-25 05:04:35 +02:00
|
|
|
(block $~lib/internal/arraybuffer/storeUnsafe<Body,Body>|inlined.0
|
|
|
|
(set_local $3
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:112:21
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.load
|
2018-04-23 22:49:04 +02:00
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:72:2
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.store offset=8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:72:11
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:72:39
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.shl
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:72:40
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $1)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:72:56
|
2018-04-25 05:04:35 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:72:71
|
2018-04-25 05:04:35 +02:00
|
|
|
(get_local $2)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $~lib/array/Array<Body>#__unchecked_get (; 14 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-25 05:04:35 +02:00
|
|
|
(local $2 i32)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:92:46
|
2018-06-24 01:04:24 +02:00
|
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<Body,Body>|inlined.0 (result i32)
|
|
|
|
(set_local $2
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:92:27
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
2018-04-25 05:04:35 +02:00
|
|
|
)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:68:91
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.load offset=8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:68:20
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:68:48
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.shl
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:68:49
|
2018-06-24 01:04:24 +02:00
|
|
|
(get_local $1)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:68:65
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.const 2)
|
2018-04-25 05:04:35 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $~lib/array/Array<Body>#__get (; 15 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-23 02:43:03 +02:00
|
|
|
(local $2 i32)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:84:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $2
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:84:17
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:87:23
|
2018-06-24 01:04:24 +02:00
|
|
|
(if (result i32)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:85:11
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.lt_u
|
|
|
|
(get_local $1)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:85:24
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.shr_u
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:85:30
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $2)
|
2018-04-23 23:57:15 +02:00
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:85:52
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.const 2)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-06-24 01:04:24 +02:00
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:86:8
|
2018-06-24 01:04:24 +02:00
|
|
|
(block $~lib/internal/arraybuffer/loadUnsafe<Body,Body>|inlined.1 (result i32)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:68:91
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.load offset=8
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:68:20
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $2)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:68:48
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.shl
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:68:49
|
2018-06-24 01:04:24 +02:00
|
|
|
(get_local $1)
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ ~lib/internal/arraybuffer.ts:68:65
|
2018-06-24 01:04:24 +02:00
|
|
|
(i32.const 2)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:87:8
|
2018-06-24 01:04:24 +02:00
|
|
|
(unreachable)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $assembly/index/Body#offsetMomentum (; 16 ;) (type $iFFFi) (param $0 i32) (param $1 f64) (param $2 f64) (param $3 f64) (result i32)
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:24:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.store offset=24
|
|
|
|
(get_local $0)
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:24:14
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.div
|
|
|
|
(f64.neg
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:24:15
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:24:20
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/SOLAR_MASS)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:25:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.store offset=32
|
|
|
|
(get_local $0)
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:25:14
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.div
|
|
|
|
(f64.neg
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:25:15
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:25:20
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/SOLAR_MASS)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:26:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.store offset=40
|
|
|
|
(get_local $0)
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:26:14
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.div
|
|
|
|
(f64.neg
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:26:15
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:26:20
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $assembly/index/SOLAR_MASS)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
;;@ assembly/index.ts:27:11
|
2018-06-24 01:04:24 +02:00
|
|
|
(get_local $0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $assembly/index/NBodySystem#constructor (; 17 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
2018-04-23 02:43:03 +02:00
|
|
|
(local $2 f64)
|
|
|
|
(local $3 f64)
|
|
|
|
(local $4 f64)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 i32)
|
|
|
|
(local $7 i32)
|
|
|
|
(local $8 f64)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:88:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $2
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:88:20
|
2018-06-27 19:03:39 +02:00
|
|
|
(f64.const 0)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:89:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $3
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:89:20
|
2018-06-27 19:03:39 +02:00
|
|
|
(f64.const 0)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:90:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $4
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:90:20
|
2018-06-27 19:03:39 +02:00
|
|
|
(f64.const 0)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:91:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $5
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:91:15
|
2018-10-11 08:49:08 +02:00
|
|
|
(block $~lib/array/Array<Body>#get:length|inlined.0 (result i32)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:51:16
|
2018-10-11 08:49:08 +02:00
|
|
|
(i32.load offset=4
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:51:11
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:92:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(block $break|0
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:92:9
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $6
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:92:17
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.const 0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:92:20
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.lt_s
|
|
|
|
(get_local $6)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:92:24
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $5)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:92:35
|
2018-06-27 19:03:39 +02:00
|
|
|
(block
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:93:6
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $7
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:93:14
|
2018-06-27 19:03:39 +02:00
|
|
|
(call $~lib/array/Array<Body>#__unchecked_get
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:93:24
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $1)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:93:31
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $6)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:94:6
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $8
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:94:14
|
2018-06-27 19:03:39 +02:00
|
|
|
(f64.load offset=48
|
|
|
|
(get_local $7)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:95:6
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $2
|
|
|
|
(f64.add
|
|
|
|
(get_local $2)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:95:12
|
2018-06-27 19:03:39 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.load offset=24
|
|
|
|
(get_local $7)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:95:19
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $8)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:96:6
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $3
|
|
|
|
(f64.add
|
|
|
|
(get_local $3)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:96:12
|
2018-06-27 19:03:39 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.load offset=32
|
|
|
|
(get_local $7)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:96:19
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $8)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:97:6
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $4
|
|
|
|
(f64.add
|
|
|
|
(get_local $4)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:97:12
|
2018-06-27 19:03:39 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.load offset=40
|
|
|
|
(get_local $7)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:97:19
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $8)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:92:30
|
2018-06-27 19:03:39 +02:00
|
|
|
(set_local $6
|
|
|
|
(i32.add
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:92:32
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $6)
|
|
|
|
(i32.const 1)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
(br $repeat|0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-06-27 19:03:39 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:99:14
|
2018-06-27 19:03:39 +02:00
|
|
|
(drop
|
|
|
|
(call $assembly/index/Body#offsetMomentum
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:99:4
|
2018-06-27 19:03:39 +02:00
|
|
|
(call $~lib/array/Array<Body>#__get
|
|
|
|
(get_local $1)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:99:11
|
2018-06-27 19:03:39 +02:00
|
|
|
(i32.const 0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:99:29
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $2)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:99:33
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $3)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:99:37
|
2018-06-27 19:03:39 +02:00
|
|
|
(get_local $4)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-24 23:11:11 +02:00
|
|
|
(tee_local $0
|
|
|
|
(if (result i32)
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $0
|
|
|
|
(block (result i32)
|
2018-05-21 10:31:00 +02:00
|
|
|
(set_local $6
|
2018-07-18 23:49:32 +02:00
|
|
|
(call $~lib/memory/memory.allocate
|
2018-04-24 23:11:11 +02:00
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
2018-05-21 10:31:00 +02:00
|
|
|
(get_local $6)
|
2018-04-24 23:11:11 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-05-21 10:31:00 +02:00
|
|
|
(get_local $6)
|
2018-04-24 23:11:11 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $assembly/index/init (; 18 ;) (type $v)
|
2018-04-23 15:04:04 +02:00
|
|
|
(local $0 i32)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:189:2
|
2018-04-23 15:04:04 +02:00
|
|
|
(set_global $assembly/index/system
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:189:11
|
2018-04-23 15:04:04 +02:00
|
|
|
(call $assembly/index/NBodySystem#constructor
|
|
|
|
(i32.const 0)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:189:27
|
2018-04-23 22:49:04 +02:00
|
|
|
(block (result i32)
|
|
|
|
(set_local $0
|
|
|
|
(call $~lib/array/Array<Body>#constructor
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
(call $~lib/array/Array<Body>#__unchecked_set
|
2018-04-23 22:49:04 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.const 0)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:190:4
|
2018-04-23 22:49:04 +02:00
|
|
|
(call $assembly/index/Sun)
|
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
(call $~lib/array/Array<Body>#__unchecked_set
|
2018-04-23 22:49:04 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:191:4
|
2018-04-23 22:49:04 +02:00
|
|
|
(call $assembly/index/Jupiter)
|
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
(call $~lib/array/Array<Body>#__unchecked_set
|
2018-04-23 22:49:04 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.const 2)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:192:4
|
2018-04-23 22:49:04 +02:00
|
|
|
(call $assembly/index/Saturn)
|
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
(call $~lib/array/Array<Body>#__unchecked_set
|
2018-04-23 22:49:04 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:193:4
|
2018-04-23 22:49:04 +02:00
|
|
|
(call $assembly/index/Uranus)
|
|
|
|
)
|
2018-04-25 05:04:35 +02:00
|
|
|
(call $~lib/array/Array<Body>#__unchecked_set
|
2018-04-23 22:49:04 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:194:4
|
2018-04-23 22:49:04 +02:00
|
|
|
(call $assembly/index/Neptune)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-04-23 15:04:04 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $assembly/index/NBodySystem#advance (; 19 ;) (type $iFv) (param $0 i32) (param $1 f64)
|
2018-04-23 02:43:03 +02:00
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 f64)
|
|
|
|
(local $7 f64)
|
|
|
|
(local $8 f64)
|
|
|
|
(local $9 f64)
|
|
|
|
(local $10 f64)
|
|
|
|
(local $11 f64)
|
|
|
|
(local $12 f64)
|
|
|
|
(local $13 i32)
|
|
|
|
(local $14 i32)
|
|
|
|
(local $15 f64)
|
|
|
|
(local $16 f64)
|
|
|
|
(local $17 f64)
|
|
|
|
(local $18 f64)
|
|
|
|
(local $19 f64)
|
|
|
|
(local $20 f64)
|
|
|
|
(local $21 f64)
|
|
|
|
(local $22 f64)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:103:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $2
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:103:17
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:104:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $3
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:104:20
|
2018-10-11 08:49:08 +02:00
|
|
|
(block $~lib/array/Array<Body>#get:length|inlined.1 (result i32)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:51:16
|
2018-10-11 08:49:08 +02:00
|
|
|
(i32.load offset=4
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:51:11
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:107:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(block $break|0
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:107:9
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $4
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:107:22
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:107:25
|
2018-05-30 16:22:56 +02:00
|
|
|
(i32.lt_u
|
|
|
|
(get_local $4)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:107:29
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:107:40
|
2018-05-30 16:22:56 +02:00
|
|
|
(block
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:108:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $5
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:108:18
|
2018-05-30 16:22:56 +02:00
|
|
|
(call $~lib/array/Array<Body>#__unchecked_get
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:108:28
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $2)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:108:35
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:111:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $6
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:111:15
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:112:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $7
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:112:15
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=8
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:113:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $8
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:113:15
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=16
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:115:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $9
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:115:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=24
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:116:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $10
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:116:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=32
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:117:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $11
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:117:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=40
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:119:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $12
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:119:19
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=48
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:120:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(block $break|1
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:120:11
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $13
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:120:24
|
2018-05-30 16:22:56 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $4)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:120:28
|
2018-05-30 16:22:56 +02:00
|
|
|
(i32.const 1)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.eqz
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:120:31
|
2018-05-30 16:22:56 +02:00
|
|
|
(i32.lt_u
|
|
|
|
(get_local $13)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:120:35
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:120:46
|
2018-05-30 16:22:56 +02:00
|
|
|
(block
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:121:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $14
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:121:20
|
2018-05-30 16:22:56 +02:00
|
|
|
(call $~lib/array/Array<Body>#__unchecked_get
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:121:30
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $2)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:121:37
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $13)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:124:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $15
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:124:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.sub
|
|
|
|
(get_local $6)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:124:22
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load
|
|
|
|
(get_local $14)
|
|
|
|
)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:125:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $16
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:125:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.sub
|
|
|
|
(get_local $7)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:125:22
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=8
|
|
|
|
(get_local $14)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:126:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $17
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:126:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.sub
|
|
|
|
(get_local $8)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:126:22
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=16
|
|
|
|
(get_local $14)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:128:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $18
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:128:25
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.add
|
|
|
|
(f64.add
|
|
|
|
(f64.mul
|
|
|
|
(get_local $15)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:128:30
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $15)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:128:35
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $16)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:128:40
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $16)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:128:45
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $17)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:128:50
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $17)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:129:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $19
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:129:23
|
2018-05-30 16:22:56 +02:00
|
|
|
(block $~lib/math/NativeMath.sqrt|inlined.0 (result f64)
|
2018-10-26 19:25:09 +03:00
|
|
|
;;@ ~lib/math.ts:1016:30
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.sqrt
|
2018-10-26 19:25:09 +03:00
|
|
|
;;@ ~lib/math.ts:1016:29
|
2018-06-24 01:04:24 +02:00
|
|
|
(get_local $18)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:130:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $20
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:130:18
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.div
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $1)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:130:23
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:130:24
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $18)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:130:37
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $19)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:132:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $21
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:132:18
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $12)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:132:27
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $20)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:133:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $22
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:133:18
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.mul
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=48
|
|
|
|
(get_local $14)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:133:31
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $20)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:135:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $9
|
|
|
|
(f64.sub
|
|
|
|
(get_local $9)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:135:16
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $15)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:135:21
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $22)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:136:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $10
|
|
|
|
(f64.sub
|
|
|
|
(get_local $10)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:136:16
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $16)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:136:21
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $22)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:137:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $11
|
|
|
|
(f64.sub
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_local $11)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:137:16
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $17)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:137:21
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $22)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:139:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.store offset=24
|
|
|
|
(get_local $14)
|
|
|
|
(f64.add
|
|
|
|
(f64.load offset=24
|
|
|
|
(get_local $14)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:139:20
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $15)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:139:25
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $21)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:140:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.store offset=32
|
|
|
|
(get_local $14)
|
|
|
|
(f64.add
|
|
|
|
(f64.load offset=32
|
|
|
|
(get_local $14)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:140:20
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $16)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:140:25
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $21)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:141:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.store offset=40
|
|
|
|
(get_local $14)
|
|
|
|
(f64.add
|
|
|
|
(f64.load offset=40
|
|
|
|
(get_local $14)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:141:20
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $17)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:141:25
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $21)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:120:41
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $13
|
|
|
|
(i32.add
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:120:43
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $13)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|1)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:144:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.store offset=24
|
|
|
|
(get_local $5)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:144:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $9)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:145:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.store offset=32
|
|
|
|
(get_local $5)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:145:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $10)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:146:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.store offset=40
|
|
|
|
(get_local $5)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:146:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $11)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:148:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.store
|
|
|
|
(get_local $5)
|
|
|
|
(f64.add
|
|
|
|
(f64.load
|
|
|
|
(get_local $5)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:148:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $1)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:148:22
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $9)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:149:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.store offset=8
|
|
|
|
(get_local $5)
|
|
|
|
(f64.add
|
|
|
|
(f64.load offset=8
|
|
|
|
(get_local $5)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:149:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $1)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:149:22
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $10)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:150:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.store offset=16
|
|
|
|
(get_local $5)
|
|
|
|
(f64.add
|
|
|
|
(f64.load offset=16
|
|
|
|
(get_local $5)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:150:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $1)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:150:22
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $11)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:107:35
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $4
|
|
|
|
(i32.add
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:107:37
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $assembly/index/NBodySystem#energy (; 20 ;) (type $iF) (param $0 i32) (result f64)
|
2018-04-23 02:43:03 +02:00
|
|
|
(local $1 f64)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
|
|
|
(local $5 i32)
|
|
|
|
(local $6 f64)
|
|
|
|
(local $7 f64)
|
|
|
|
(local $8 f64)
|
|
|
|
(local $9 f64)
|
|
|
|
(local $10 f64)
|
|
|
|
(local $11 f64)
|
|
|
|
(local $12 f64)
|
|
|
|
(local $13 i32)
|
|
|
|
(local $14 i32)
|
|
|
|
(local $15 f64)
|
|
|
|
(local $16 f64)
|
|
|
|
(local $17 f64)
|
|
|
|
(local $18 f64)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:155:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $1
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:155:19
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.const 0)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:156:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $2
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:156:17
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:158:4
|
2018-04-23 02:43:03 +02:00
|
|
|
(block $break|0
|
2018-10-11 08:49:08 +02:00
|
|
|
;;@ assembly/index.ts:158:9
|
2018-04-24 23:11:11 +02:00
|
|
|
(block
|
|
|
|
(set_local $3
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:158:22
|
2018-04-24 23:11:11 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(set_local $4
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:158:37
|
2018-10-11 08:49:08 +02:00
|
|
|
(block $~lib/array/Array<Body>#get:length|inlined.2 (result i32)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:51:16
|
2018-10-11 08:49:08 +02:00
|
|
|
(i32.load offset=4
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:51:11
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-24 23:11:11 +02:00
|
|
|
)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:158:52
|
2018-05-30 16:22:56 +02:00
|
|
|
(i32.lt_u
|
|
|
|
(get_local $3)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:158:56
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:158:67
|
2018-05-30 16:22:56 +02:00
|
|
|
(block
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:159:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $5
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:159:18
|
2018-05-30 16:22:56 +02:00
|
|
|
(call $~lib/array/Array<Body>#__unchecked_get
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:159:28
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $2)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:159:35
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $3)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:161:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $6
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:161:15
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:162:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $7
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:162:15
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=8
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:163:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $8
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:163:15
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=16
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:165:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $9
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:165:15
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=24
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:166:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $10
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:166:15
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=32
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:167:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $11
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:167:15
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=40
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:169:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $12
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:169:16
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=48
|
|
|
|
(get_local $5)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:171:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $1
|
|
|
|
(f64.add
|
|
|
|
(get_local $1)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:171:11
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(f64.mul
|
|
|
|
(f64.const 0.5)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:171:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $12)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:171:23
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.add
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:171:24
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.add
|
|
|
|
(f64.mul
|
|
|
|
(get_local $9)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:171:29
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $9)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:171:34
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $10)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:171:39
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $10)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:171:44
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $11)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:171:49
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $11)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:173:6
|
2018-05-30 16:22:56 +02:00
|
|
|
(block $break|1
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:173:11
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $13
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:173:24
|
2018-05-30 16:22:56 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $3)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:173:28
|
2018-05-30 16:22:56 +02:00
|
|
|
(i32.const 1)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
|
|
|
(loop $repeat|1
|
|
|
|
(br_if $break|1
|
|
|
|
(i32.eqz
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:173:31
|
2018-05-30 16:22:56 +02:00
|
|
|
(i32.lt_u
|
|
|
|
(get_local $13)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:173:35
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $4)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:173:46
|
2018-05-30 16:22:56 +02:00
|
|
|
(block
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:174:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $14
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:174:20
|
2018-05-30 16:22:56 +02:00
|
|
|
(call $~lib/array/Array<Body>#__unchecked_get
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:174:30
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $2)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:174:37
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $13)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:175:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $15
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:175:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.sub
|
|
|
|
(get_local $6)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:175:22
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load
|
|
|
|
(get_local $14)
|
|
|
|
)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:176:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $16
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:176:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.sub
|
|
|
|
(get_local $7)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:176:22
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=8
|
|
|
|
(get_local $14)
|
|
|
|
)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:177:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $17
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:177:17
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.sub
|
|
|
|
(get_local $8)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:177:22
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=16
|
|
|
|
(get_local $14)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:178:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $18
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:178:23
|
2018-05-30 16:22:56 +02:00
|
|
|
(block $~lib/math/NativeMath.sqrt|inlined.1 (result f64)
|
|
|
|
(set_local $18
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:178:40
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.add
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.add
|
|
|
|
(f64.mul
|
|
|
|
(get_local $15)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:178:45
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $15)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:178:50
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.mul
|
|
|
|
(get_local $16)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:178:55
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $16)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:178:60
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.mul
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $17)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:178:65
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $17)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
)
|
2018-10-26 19:25:09 +03:00
|
|
|
;;@ ~lib/math.ts:1016:30
|
2018-06-24 01:04:24 +02:00
|
|
|
(f64.sqrt
|
2018-10-26 19:25:09 +03:00
|
|
|
;;@ ~lib/math.ts:1016:29
|
2018-06-24 01:04:24 +02:00
|
|
|
(get_local $18)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:179:8
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $1
|
|
|
|
(f64.sub
|
|
|
|
(get_local $1)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:179:13
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.div
|
|
|
|
(f64.mul
|
|
|
|
(get_local $12)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:179:19
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.load offset=48
|
|
|
|
(get_local $14)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:179:32
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $18)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:173:41
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $13
|
|
|
|
(i32.add
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:173:43
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $13)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
(br $repeat|1)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:158:62
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $3
|
|
|
|
(i32.add
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:158:64
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $3)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:182:11
|
2018-06-24 01:04:24 +02:00
|
|
|
(get_local $1)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $assembly/index/step (; 21 ;) (type $F) (result f64)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:199:9
|
2018-04-23 02:43:03 +02:00
|
|
|
(call $assembly/index/NBodySystem#advance
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:199:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(get_global $assembly/index/system)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:199:17
|
2018-04-23 02:43:03 +02:00
|
|
|
(f64.const 0.01)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:200:23
|
2018-06-24 01:04:24 +02:00
|
|
|
(call $assembly/index/NBodySystem#energy
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:200:9
|
2018-06-24 01:04:24 +02:00
|
|
|
(get_global $assembly/index/system)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $assembly/index/bench (; 22 ;) (type $iv) (param $0 i32)
|
2018-04-23 02:43:03 +02:00
|
|
|
(local $1 i32)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:204:2
|
2018-04-23 02:43:03 +02:00
|
|
|
(block $break|0
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:204:7
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_local $1
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:204:20
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
(loop $repeat|0
|
|
|
|
(br_if $break|0
|
|
|
|
(i32.eqz
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:204:23
|
2018-05-30 16:22:56 +02:00
|
|
|
(i32.lt_u
|
|
|
|
(get_local $1)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:204:27
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:204:46
|
2018-05-30 16:22:56 +02:00
|
|
|
(call $assembly/index/NBodySystem#advance
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:204:39
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_global $assembly/index/system)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:204:54
|
2018-05-30 16:22:56 +02:00
|
|
|
(f64.const 0.01)
|
|
|
|
)
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:204:34
|
2018-05-30 16:22:56 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
2018-07-21 15:11:39 +03:00
|
|
|
;;@ assembly/index.ts:204:36
|
2018-05-30 16:22:56 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $repeat|0)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $assembly/index/getBody (; 23 ;) (type $ii) (param $0 i32) (result i32)
|
2018-07-22 02:55:46 +02:00
|
|
|
(local $1 i32)
|
|
|
|
;;@ assembly/index.ts:208:2
|
|
|
|
(set_local $1
|
|
|
|
;;@ assembly/index.ts:208:15
|
|
|
|
(i32.load
|
|
|
|
(get_global $assembly/index/system)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
;;@ assembly/index.ts:209:59
|
|
|
|
(if (result i32)
|
|
|
|
;;@ assembly/index.ts:209:9
|
|
|
|
(i32.lt_u
|
|
|
|
(get_local $0)
|
|
|
|
;;@ assembly/index.ts:209:22
|
2018-10-11 08:49:08 +02:00
|
|
|
(block $~lib/array/Array<Body>#get:length|inlined.4 (result i32)
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:51:16
|
2018-10-11 08:49:08 +02:00
|
|
|
(i32.load offset=4
|
2018-10-11 09:09:56 +02:00
|
|
|
;;@ ~lib/array.ts:51:11
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-07-22 02:55:46 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
;;@ assembly/index.ts:209:43
|
|
|
|
(call $~lib/array/Array<Body>#__get
|
|
|
|
(get_local $1)
|
|
|
|
;;@ assembly/index.ts:209:50
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
;;@ assembly/index.ts:209:59
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $start (; 24 ;) (type $v)
|
2018-04-23 02:43:03 +02:00
|
|
|
(set_global $~lib/allocator/arena/startOffset
|
|
|
|
;;@ ~lib/allocator/arena.ts:12:25
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
;;@ ~lib/allocator/arena.ts:12:26
|
|
|
|
(get_global $HEAP_BASE)
|
|
|
|
;;@ ~lib/allocator/arena.ts:12:38
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $~lib/internal/allocator/AL_MASK)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
|
|
|
;;@ ~lib/allocator/arena.ts:12:49
|
|
|
|
(i32.xor
|
|
|
|
;;@ ~lib/allocator/arena.ts:12:50
|
2018-07-19 02:10:04 +02:00
|
|
|
(get_global $~lib/internal/allocator/AL_MASK)
|
2018-04-23 02:43:03 +02:00
|
|
|
(i32.const -1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $~lib/allocator/arena/offset
|
|
|
|
;;@ ~lib/allocator/arena.ts:13:20
|
|
|
|
(get_global $~lib/allocator/arena/startOffset)
|
|
|
|
)
|
2018-05-30 16:22:56 +02:00
|
|
|
(nop)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(func $null (; 25 ;) (type $v)
|
|
|
|
)
|
2018-04-23 02:43:03 +02:00
|
|
|
)
|