equal
deleted
inserted
replaced
137 assert(bytecode == Bytecodes::_fast_aldc || |
137 assert(bytecode == Bytecodes::_fast_aldc || |
138 bytecode == Bytecodes::_fast_aldc_w, "wrong bc"); |
138 bytecode == Bytecodes::_fast_aldc_w, "wrong bc"); |
139 ResourceMark rm(thread); |
139 ResourceMark rm(thread); |
140 methodHandle m (thread, method(thread)); |
140 methodHandle m (thread, method(thread)); |
141 Bytecode_loadconstant ldc(m, bci(thread)); |
141 Bytecode_loadconstant ldc(m, bci(thread)); |
142 oop result = ldc.resolve_constant(THREAD); |
142 oop result = ldc.resolve_constant(CHECK); |
143 DEBUG_ONLY(ConstantPoolCacheEntry* cpce = m->constants()->cache()->entry_at(ldc.cache_index())); |
143 #ifdef ASSERT |
144 assert(result == cpce->f1(), "expected result for assembly code"); |
144 { |
|
145 // The bytecode wrappers aren't GC-safe so construct a new one |
|
146 Bytecode_loadconstant ldc2(m, bci(thread)); |
|
147 ConstantPoolCacheEntry* cpce = m->constants()->cache()->entry_at(ldc2.cache_index()); |
|
148 assert(result == cpce->f1(), "expected result for assembly code"); |
|
149 } |
|
150 #endif |
145 } |
151 } |
146 IRT_END |
152 IRT_END |
147 |
153 |
148 |
154 |
149 //------------------------------------------------------------------------------------------------------------------------ |
155 //------------------------------------------------------------------------------------------------------------------------ |