8278533: Remove some unused methods in c1_Instruction and c1_ValueMap

Reviewed-by: chagedorn
This commit is contained in:
Hamlin Li 2021-12-10 14:51:27 +00:00
parent aed3ea2043
commit 3e0b083f20
3 changed files with 1 additions and 8 deletions

View File

@ -890,11 +890,6 @@ void BlockList::iterate_backward(BlockClosure* closure) {
} }
void BlockList::blocks_do(void f(BlockBegin*)) {
for (int i = length() - 1; i >= 0; i--) f(at(i));
}
void BlockList::values_do(ValueVisitor* f) { void BlockList::values_do(ValueVisitor* f) {
for (int i = length() - 1; i >= 0; i--) at(i)->block_values_do(f); for (int i = length() - 1; i >= 0; i--) at(i)->block_values_do(f);
} }

View File

@ -137,7 +137,6 @@ class BlockList: public GrowableArray<BlockBegin*> {
void iterate_forward(BlockClosure* closure); void iterate_forward(BlockClosure* closure);
void iterate_backward(BlockClosure* closure); void iterate_backward(BlockClosure* closure);
void blocks_do(void f(BlockBegin*));
void values_do(ValueVisitor* f); void values_do(ValueVisitor* f);
void print(bool cfg_only = false, bool live_only = false) PRODUCT_RETURN; void print(bool cfg_only = false, bool live_only = false) PRODUCT_RETURN;
}; };

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1999, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -116,7 +116,6 @@ class ValueMap: public CompilationResourceObj {
void kill_memory(); void kill_memory();
void kill_field(ciField* field, bool all_offsets); void kill_field(ciField* field, bool all_offsets);
void kill_array(ValueType* type); void kill_array(ValueType* type);
void kill_exception();
void kill_map(ValueMap* map); void kill_map(ValueMap* map);
void kill_all(); void kill_all();