42 _masm->nop();
43 }
44 patch->install(_masm, patch_code, obj, info);
45 append_code_stub(patch);
46
47 #ifdef ASSERT
48 Bytecodes::Code code = info->scope()->method()->java_code_at_bci(info->stack()->bci());
49 if (patch->id() == PatchingStub::access_field_id) {
50 switch (code) {
51 case Bytecodes::_putstatic:
52 case Bytecodes::_getstatic:
53 case Bytecodes::_putfield:
54 case Bytecodes::_getfield:
55 break;
56 default:
57 ShouldNotReachHere();
58 }
59 } else if (patch->id() == PatchingStub::load_klass_id) {
60 switch (code) {
61 case Bytecodes::_new:
62 case Bytecodes::_anewarray:
63 case Bytecodes::_multianewarray:
64 case Bytecodes::_instanceof:
65 case Bytecodes::_checkcast:
66 break;
67 default:
68 ShouldNotReachHere();
69 }
70 } else if (patch->id() == PatchingStub::load_mirror_id) {
71 switch (code) {
72 case Bytecodes::_putstatic:
73 case Bytecodes::_getstatic:
74 case Bytecodes::_ldc:
75 case Bytecodes::_ldc_w:
76 break;
77 default:
78 ShouldNotReachHere();
79 }
80 } else if (patch->id() == PatchingStub::load_appendix_id) {
81 Bytecodes::Code bc_raw = info->scope()->method()->raw_code_at_bci(info->stack()->bci());
|
42 _masm->nop();
43 }
44 patch->install(_masm, patch_code, obj, info);
45 append_code_stub(patch);
46
47 #ifdef ASSERT
48 Bytecodes::Code code = info->scope()->method()->java_code_at_bci(info->stack()->bci());
49 if (patch->id() == PatchingStub::access_field_id) {
50 switch (code) {
51 case Bytecodes::_putstatic:
52 case Bytecodes::_getstatic:
53 case Bytecodes::_putfield:
54 case Bytecodes::_getfield:
55 break;
56 default:
57 ShouldNotReachHere();
58 }
59 } else if (patch->id() == PatchingStub::load_klass_id) {
60 switch (code) {
61 case Bytecodes::_new:
62 case Bytecodes::_defaultvalue:
63 case Bytecodes::_anewarray:
64 case Bytecodes::_multianewarray:
65 case Bytecodes::_instanceof:
66 case Bytecodes::_checkcast:
67 break;
68 default:
69 ShouldNotReachHere();
70 }
71 } else if (patch->id() == PatchingStub::load_mirror_id) {
72 switch (code) {
73 case Bytecodes::_putstatic:
74 case Bytecodes::_getstatic:
75 case Bytecodes::_ldc:
76 case Bytecodes::_ldc_w:
77 break;
78 default:
79 ShouldNotReachHere();
80 }
81 } else if (patch->id() == PatchingStub::load_appendix_id) {
82 Bytecodes::Code bc_raw = info->scope()->method()->raw_code_at_bci(info->stack()->bci());
|