|
|
|
@ -120,6 +120,7 @@ opcodes_coverage.SELF_S = 0
|
|
|
|
|
opcodes_coverage.TOTYPE = 0
|
|
|
|
|
opcodes_coverage.TOSTRING = 0
|
|
|
|
|
opcodes_coverage.TOCLOSURE = 0
|
|
|
|
|
opcodes_coverage.SELF_SK = 0
|
|
|
|
|
|
|
|
|
|
local compile = function(f)
|
|
|
|
|
if ravi.jit() then
|
|
|
|
@ -1577,6 +1578,16 @@ ravi.compile(x)
|
|
|
|
|
assert(x() == 'a')
|
|
|
|
|
print 'Test 63 OK'
|
|
|
|
|
|
|
|
|
|
-- Codegen bug #issue 148
|
|
|
|
|
function x()
|
|
|
|
|
assert(({pcall(function() comp 'x for __result' end)})[2]
|
|
|
|
|
:find'not contain __ prefix')
|
|
|
|
|
end
|
|
|
|
|
check(x, 'GETTABUP_SK', 'NEWTABLE', 'GETTABUP_SK', 'CLOSURE',
|
|
|
|
|
'CALL', 'SETLIST', 'GETTABLE_I', 'SELF_SK', 'LOADK',
|
|
|
|
|
'CALL', 'CALL', 'RETURN')
|
|
|
|
|
print 'Test 64 OK'
|
|
|
|
|
|
|
|
|
|
for k,v in pairs(opcodes_coverage)
|
|
|
|
|
do
|
|
|
|
|
print(k, v)
|
|
|
|
|