wir.Module 增加无类型整数类型(为重构做准备)
This commit is contained in:
parent
a03e731d98
commit
33f6724e76
|
|
@ -918,7 +918,7 @@ func (m *Module) EmitGenRange(x Value) (insts []wat.Inst, ret_type ValueType) {
|
|||
}
|
||||
|
||||
func (m *Module) EmitGenNext_String(iter Value) (insts []wat.Inst, ret_type ValueType) {
|
||||
fields := []ValueType{m.BOOL, m.I32, m.RUNE}
|
||||
fields := []ValueType{m.BOOL, m.INT, m.RUNE}
|
||||
ret_type = m.GenValueType_Tuple(fields)
|
||||
|
||||
insts = append(insts, iter.EmitPush()...)
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ type fnSigWrap struct {
|
|||
Module:
|
||||
**************************************/
|
||||
type Module struct {
|
||||
VOID, BOOL, RUNE, U8, U16, I32, U32, UPTR, I64, U64, F32, F64, STRING, BYTES ValueType
|
||||
VOID, BOOL, RUNE, U8, U16, I32, U32, UPTR, I64, U64, INT, UINT, F32, F64, STRING, BYTES ValueType
|
||||
|
||||
types_map map[string]ValueType
|
||||
usedConcreteTypes []ValueType
|
||||
|
|
@ -60,6 +60,8 @@ func NewModule() *Module {
|
|||
//m.I16 = &tI16{}
|
||||
m.U16 = &tU16{}
|
||||
m.I32 = &tI32{}
|
||||
m.INT = m.I32
|
||||
m.UINT = m.U32
|
||||
m.U32 = &tU32{}
|
||||
m.UPTR = m.U32
|
||||
m.I64 = &tI64{}
|
||||
|
|
|
|||
Loading…
Reference in New Issue