mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
8149374: Replace C1-specific collection classes with universal collection classes
Reviewed-by: kvn, mgerdin, coleenp
This commit is contained in:
parent
7fc81004e3
commit
6b6686bd43
37 changed files with 269 additions and 635 deletions
|
@ -150,7 +150,7 @@ PhiResolver::~PhiResolver() {
|
|||
int i;
|
||||
// resolve any cycles in moves from and to virtual registers
|
||||
for (i = virtual_operands().length() - 1; i >= 0; i --) {
|
||||
ResolveNode* node = virtual_operands()[i];
|
||||
ResolveNode* node = virtual_operands().at(i);
|
||||
if (!node->visited()) {
|
||||
_loop = NULL;
|
||||
move(NULL, node);
|
||||
|
@ -161,7 +161,7 @@ PhiResolver::~PhiResolver() {
|
|||
|
||||
// generate move for move from non virtual register to abitrary destination
|
||||
for (i = other_operands().length() - 1; i >= 0; i --) {
|
||||
ResolveNode* node = other_operands()[i];
|
||||
ResolveNode* node = other_operands().at(i);
|
||||
for (int j = node->no_of_destinations() - 1; j >= 0; j --) {
|
||||
emit_move(node->operand(), node->destination_at(j)->operand());
|
||||
}
|
||||
|
@ -177,7 +177,7 @@ ResolveNode* PhiResolver::create_node(LIR_Opr opr, bool source) {
|
|||
assert(node == NULL || node->operand() == opr, "");
|
||||
if (node == NULL) {
|
||||
node = new ResolveNode(opr);
|
||||
vreg_table()[vreg_num] = node;
|
||||
vreg_table().at_put(vreg_num, node);
|
||||
}
|
||||
// Make sure that all virtual operands show up in the list when
|
||||
// they are used as the source of a move.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue