function luaK.exp2RK(y,v,Y)y:exp2val(v,Y)local w=Y.k if w=="\086\075\078\085\077"or w=="\086\084\082\085\069"or w=="\086\070\065\076\083\069"or w=="\086\078\073\076"then if v.nk<=luaP.MAXINDEXRK then if Y.k=="\086\078\073\076"then Y.info=y:nilK(v)else Y.info=Y.k=="\086\075\078\085\077"and y:numberK(v,Y.nval)or y:boolK(v,Y.k=="\086\084\082\085\069")end Y.k="\086\075"return luaP:RKASK(Y.info)end elseif w=="\086\075"then if Y.info<=luaP.MAXINDEXRK then return luaP:RKASK(Y.info)end else end return y:exp2anyreg(v,Y)end
------------------------------------------------------------------------
--
-- * used in multiple locations
------------------------------------------------------------------------
function luaK:exp2RK(fs, e)
	self:exp2val(fs, e)
	local k = e.k
	if k == "VKNUM" or k == "VTRUE" or k == "VFALSE" or k == "VNIL" then
		if fs.nk <= luaP.MAXINDEXRK then -- constant fit in RK operand?
			-- converted from a 2-deep ternary operator expression
			if e.k == "VNIL" then
				e.info = self:nilK(fs)
			else
				e.info = (e.k == "VKNUM") and self:numberK(fs, e.nval) or self:boolK(fs, e.k == "VTRUE")
			end
			e.k = "VK"
			return luaP:RKASK(e.info)
		end
	elseif k == "VK" then
		if e.info <= luaP.MAXINDEXRK then -- constant fit in argC?
			return luaP:RKASK(e.info)
		end
	else
		-- default
	end
	-- not a constant in the right range: put it in a register
	return self:exp2anyreg(fs, e)
end
