Rationale: We should reserve new for instructions that allocate a (fresh) object on the heap. The whole point of i31ref is that it does not allocate anything, nor create a distinguished new reference. The instruction hence rather is in the same category as ref.null and ref.func.
This renames the
i31.new
mnemonic toref.i31
.Rationale: We should reserve
new
for instructions that allocate a (fresh) object on the heap. The whole point of i31ref is that it does not allocate anything, nor create a distinguished new reference. The instruction hence rather is in the same category asref.null
andref.func
.Only affects the text format.