From 3e0b083f2013f07b090af92a78c9a5f46f9fe427 Mon Sep 17 00:00:00 2001 From: Hamlin Li Date: Fri, 10 Dec 2021 14:51:27 +0000 Subject: [PATCH] 8278533: Remove some unused methods in c1_Instruction and c1_ValueMap Reviewed-by: chagedorn --- src/hotspot/share/c1/c1_Instruction.cpp | 5 ----- src/hotspot/share/c1/c1_Instruction.hpp | 1 - src/hotspot/share/c1/c1_ValueMap.hpp | 3 +-- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/hotspot/share/c1/c1_Instruction.cpp b/src/hotspot/share/c1/c1_Instruction.cpp index 801aeb054aa..8dbca0667f1 100644 --- a/src/hotspot/share/c1/c1_Instruction.cpp +++ b/src/hotspot/share/c1/c1_Instruction.cpp @@ -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) { for (int i = length() - 1; i >= 0; i--) at(i)->block_values_do(f); } diff --git a/src/hotspot/share/c1/c1_Instruction.hpp b/src/hotspot/share/c1/c1_Instruction.hpp index 5b5ea8a863c..932b79792a5 100644 --- a/src/hotspot/share/c1/c1_Instruction.hpp +++ b/src/hotspot/share/c1/c1_Instruction.hpp @@ -137,7 +137,6 @@ class BlockList: public GrowableArray { void iterate_forward(BlockClosure* closure); void iterate_backward(BlockClosure* closure); - void blocks_do(void f(BlockBegin*)); void values_do(ValueVisitor* f); void print(bool cfg_only = false, bool live_only = false) PRODUCT_RETURN; }; diff --git a/src/hotspot/share/c1/c1_ValueMap.hpp b/src/hotspot/share/c1/c1_ValueMap.hpp index 00034c24ed1..3ada748c67a 100644 --- a/src/hotspot/share/c1/c1_ValueMap.hpp +++ b/src/hotspot/share/c1/c1_ValueMap.hpp @@ -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. * * 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_field(ciField* field, bool all_offsets); void kill_array(ValueType* type); - void kill_exception(); void kill_map(ValueMap* map); void kill_all();