src/share/vm/c1/c1_Runtime1.cpp

changeset 5784
190899198332
parent 5732
b2e698d2276c
child 5805
d0cfa6502dfe
equal deleted inserted replaced
5783:c1fbf21c7397 5784:190899198332
1017 if (stub_id == Runtime1::load_klass_patching_id) { 1017 if (stub_id == Runtime1::load_klass_patching_id) {
1018 assert(load_klass() != NULL, "klass not set"); 1018 assert(load_klass() != NULL, "klass not set");
1019 n_copy->set_data((intx) (load_klass())); 1019 n_copy->set_data((intx) (load_klass()));
1020 } else { 1020 } else {
1021 assert(mirror() != NULL, "klass not set"); 1021 assert(mirror() != NULL, "klass not set");
1022 n_copy->set_data((intx) (mirror())); 1022 n_copy->set_data(cast_from_oop<intx>(mirror()));
1023 } 1023 }
1024 1024
1025 if (TracePatching) { 1025 if (TracePatching) {
1026 Disassembler::decode(copy_buff, copy_buff + *byte_count, tty); 1026 Disassembler::decode(copy_buff, copy_buff + *byte_count, tty);
1027 } 1027 }
1029 } else if (stub_id == Runtime1::load_appendix_patching_id) { 1029 } else if (stub_id == Runtime1::load_appendix_patching_id) {
1030 NativeMovConstReg* n_copy = nativeMovConstReg_at(copy_buff); 1030 NativeMovConstReg* n_copy = nativeMovConstReg_at(copy_buff);
1031 assert(n_copy->data() == 0 || 1031 assert(n_copy->data() == 0 ||
1032 n_copy->data() == (intptr_t)Universe::non_oop_word(), 1032 n_copy->data() == (intptr_t)Universe::non_oop_word(),
1033 "illegal init value"); 1033 "illegal init value");
1034 n_copy->set_data((intx) (appendix())); 1034 n_copy->set_data(cast_from_oop<intx>(appendix()));
1035 1035
1036 if (TracePatching) { 1036 if (TracePatching) {
1037 Disassembler::decode(copy_buff, copy_buff + *byte_count, tty); 1037 Disassembler::decode(copy_buff, copy_buff + *byte_count, tty);
1038 } 1038 }
1039 } else { 1039 } else {

mercurial