equal
deleted
inserted
replaced
53 _orig->pool_holder()->class_loader_data(), |
53 _orig->pool_holder()->class_loader_data(), |
54 _orig->length() + _entries.length(), CHECK_NULL); |
54 _orig->length() + _entries.length(), CHECK_NULL); |
55 |
55 |
56 cp->set_pool_holder(_orig->pool_holder()); |
56 cp->set_pool_holder(_orig->pool_holder()); |
57 _orig->copy_cp_to(1, _orig->length() - 1, cp, 1, CHECK_NULL); |
57 _orig->copy_cp_to(1, _orig->length() - 1, cp, 1, CHECK_NULL); |
|
58 |
|
59 // Preserve dynamic constant information from the original pool |
|
60 if (_orig->has_dynamic_constant()) { |
|
61 cp->set_has_dynamic_constant(); |
|
62 } |
58 |
63 |
59 for (int i = 0; i < _entries.length(); ++i) { |
64 for (int i = 0; i < _entries.length(); ++i) { |
60 BytecodeCPEntry entry = _entries.at(i); |
65 BytecodeCPEntry entry = _entries.at(i); |
61 int idx = i + _orig->length(); |
66 int idx = i + _orig->length(); |
62 switch (entry._tag) { |
67 switch (entry._tag) { |