faster aot

This commit is contained in:
2026-02-18 20:24:12 -06:00
parent 7a4c72025f
commit 621da78de9
4 changed files with 1065 additions and 311 deletions

6
qbe.cm
View File

@@ -11,7 +11,7 @@ def js_null = 7
def js_false = 3
def js_true = 35
def js_exception = 15
def js_empty_text = 27
def js_empty_text = 11
// Shared closure vars for functions with >4 params
var _qop = null
@@ -67,13 +67,13 @@ var is_ptr = function(p, v) {
var is_imm_text = function(p, v) {
return ` %${p}.t =l and ${v}, 31
%${p} =w ceql %${p}.t, 27
%${p} =w ceql %${p}.t, 11
`
}
var is_text = function(p, v) {
return ` %${p}.imm =l and ${v}, 31
%${p}.is_imm =w ceql %${p}.imm, 27
%${p}.is_imm =w ceql %${p}.imm, 11
jnz %${p}.is_imm, @${p}.yes, @${p}.chk_ptr
@${p}.chk_ptr
%${p}.ptag =l and ${v}, 7