Module: YTLJit::VM::TypeCodeGen::FloatTypeBoxedCodeGen
- Includes:
- AbsArch, CommonCodeGen, TypeUtil
- Defined in:
- lib/ytljit/vm_type_gen.rb
Constant Summary
Constants included from AbsArch
AbsArch::AL, AbsArch::BL, AbsArch::CL, AbsArch::DL, AbsArch::FUNC_ARG, AbsArch::FUNC_ARG_YTL, AbsArch::FUNC_FLOAT_ARG, AbsArch::FUNC_FLOAT_ARG_YTL, AbsArch::INDIRECT_BPR, AbsArch::INDIRECT_RETR, AbsArch::INDIRECT_SPR, AbsArch::INDIRECT_TMPR, AbsArch::INDIRECT_TMPR2, AbsArch::INDIRECT_TMPR3
Constants included from SSE
SSE::XMM0, SSE::XMM1, SSE::XMM2, SSE::XMM3, SSE::XMM4, SSE::XMM5, SSE::XMM6, SSE::XMM7
Instance Method Summary collapse
Methods included from CommonCodeGen
#dump_context, #gen_alloca, #gen_call, #gen_save_thepr
Methods included from TypeUtil
Instance Method Details
#gen_boxing(context) ⇒ Object
213 214 215 |
# File 'lib/ytljit/vm_type_gen.rb', line 213 def gen_boxing(context) context end |
#gen_copy(context) ⇒ Object
228 229 230 |
# File 'lib/ytljit/vm_type_gen.rb', line 228 def gen_copy(context) context end |
#gen_unboxing(context) ⇒ Object
217 218 219 220 221 222 223 224 225 226 |
# File 'lib/ytljit/vm_type_gen.rb', line 217 def gen_unboxing(context) asm = context.assembler fobj = TypedData.new(InternalRubyType::RFloat, context.ret_reg) asm.with_retry do asm.movsd(XMM0, fobj[:float_value]) end context.ret_reg = XMM0 context end |