644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
|
# File 'lib/duby/old/compiler_old.rb', line 644
def compile(builder)
local_index = builder.local(name, value_node.type(builder))
value_node.compile(builder)
builder.dup
case type(builder)
when Jboolean
builder.bistore(local_index)
when Jint
builder.istore(local_index)
when Jlong
builder.lstore(local_index)
when Jfloat
builder.fstore(local_index)
when Jdouble
builder.dstore(local_index)
else
builder.astore(local_index)
end
end
|