626 assert(src->is_constant(), "should not call otherwise"); |
626 assert(src->is_constant(), "should not call otherwise"); |
627 assert(dest->is_register(), "should not call otherwise"); |
627 assert(dest->is_register(), "should not call otherwise"); |
628 LIR_Const* c = src->as_constant_ptr(); |
628 LIR_Const* c = src->as_constant_ptr(); |
629 |
629 |
630 switch (c->type()) { |
630 switch (c->type()) { |
631 case T_INT: { |
631 case T_INT: |
|
632 case T_ADDRESS: { |
632 assert(patch_code == lir_patch_none, "no patching handled here"); |
633 assert(patch_code == lir_patch_none, "no patching handled here"); |
633 __ movl(dest->as_register(), c->as_jint()); |
634 __ movl(dest->as_register(), c->as_jint()); |
634 break; |
635 break; |
635 } |
636 } |
636 |
637 |
709 LIR_Const* c = src->as_constant_ptr(); |
710 LIR_Const* c = src->as_constant_ptr(); |
710 |
711 |
711 switch (c->type()) { |
712 switch (c->type()) { |
712 case T_INT: // fall through |
713 case T_INT: // fall through |
713 case T_FLOAT: |
714 case T_FLOAT: |
|
715 case T_ADDRESS: |
714 __ movl(frame_map()->address_for_slot(dest->single_stack_ix()), c->as_jint_bits()); |
716 __ movl(frame_map()->address_for_slot(dest->single_stack_ix()), c->as_jint_bits()); |
715 break; |
717 break; |
716 |
718 |
717 case T_OBJECT: |
719 case T_OBJECT: |
718 __ movoop(frame_map()->address_for_slot(dest->single_stack_ix()), c->as_jobject()); |
720 __ movoop(frame_map()->address_for_slot(dest->single_stack_ix()), c->as_jobject()); |