equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
62 case BytecodeCPEntry::UTF8: |
62 case BytecodeCPEntry::UTF8: |
63 entry._u.utf8->increment_refcount(); |
63 entry._u.utf8->increment_refcount(); |
64 cp->symbol_at_put(idx, entry._u.utf8); |
64 cp->symbol_at_put(idx, entry._u.utf8); |
65 break; |
65 break; |
66 case BytecodeCPEntry::KLASS: |
66 case BytecodeCPEntry::KLASS: |
67 cp->unresolved_klass_at_put( |
67 cp->klass_index_at_put( |
68 idx, cp->symbol_at(entry._u.klass)); |
68 idx, entry._u.klass); |
69 break; |
69 break; |
70 case BytecodeCPEntry::STRING: |
70 case BytecodeCPEntry::STRING: |
71 cp->unresolved_string_at_put( |
71 cp->unresolved_string_at_put( |
72 idx, cp->symbol_at(entry._u.string)); |
72 idx, cp->symbol_at(entry._u.string)); |
73 break; |
73 break; |
83 break; |
83 break; |
84 default: |
84 default: |
85 ShouldNotReachHere(); |
85 ShouldNotReachHere(); |
86 } |
86 } |
87 } |
87 } |
|
88 |
|
89 cp->initialize_unresolved_klasses(_orig->pool_holder()->class_loader_data(), |
|
90 CHECK_NULL); |
88 return cp; |
91 return cp; |
89 } |
92 } |
90 |
93 |
91 void BytecodeAssembler::append(u1 imm_u1) { |
94 void BytecodeAssembler::append(u1 imm_u1) { |
92 _code->append(imm_u1); |
95 _code->append(imm_u1); |