Fix more keywords that can sometimes be identifiers, see #666

This commit is contained in:
dcode
2019-06-15 00:48:51 +02:00
parent bdd825b026
commit 27d6efa037
6 changed files with 108 additions and 51 deletions

View File

@ -1,7 +1,6 @@
(module
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$v (func))
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
@ -133,12 +132,7 @@
end
local.get $0
)
(func $~lib/rt/stub/__release (; 4 ;) (type $FUNCSIG$vi) (param $0 i32)
nop
)
(func $rt/instanceof/Cat#constructor (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(func $rt/instanceof/Cat#constructor (; 4 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
@ -150,17 +144,10 @@
end
local.get $0
call $rt/instanceof/Animal#constructor
local.tee $1
local.set $0
local.get $0
local.set $2
local.get $1
call $~lib/rt/stub/__release
local.get $2
)
(func $rt/instanceof/BlackCat#constructor (; 6 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(func $rt/instanceof/BlackCat#constructor (; 5 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.eqz
if
@ -172,15 +159,10 @@
end
local.get $0
call $rt/instanceof/Cat#constructor
local.tee $1
local.set $0
local.get $0
local.set $2
local.get $1
call $~lib/rt/stub/__release
local.get $2
)
(func $~lib/rt/__instanceof (; 7 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/rt/__instanceof (; 6 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
local.get $0
@ -217,7 +199,7 @@
end
i32.const 0
)
(func $start:rt/instanceof (; 8 ;) (type $FUNCSIG$v)
(func $start:rt/instanceof (; 7 ;) (type $FUNCSIG$v)
(local $0 i32)
global.get $~lib/heap/__heap_base
i32.const 15
@ -713,7 +695,7 @@
unreachable
end
)
(func $start (; 9 ;) (type $FUNCSIG$v)
(func $start (; 8 ;) (type $FUNCSIG$v)
global.get $~lib/started
if
return
@ -723,6 +705,6 @@
end
call $start:rt/instanceof
)
(func $null (; 10 ;) (type $FUNCSIG$v)
(func $null (; 9 ;) (type $FUNCSIG$v)
)
)