src/hotspot/share/ci/ciObjectFactory.cpp
changeset 54150 5529640c5f67
parent 53278 4b469f5f4bf2
child 54786 ebf733a324d4
equal deleted inserted replaced
54149:c61f09122d3b 54150:5529640c5f67
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2019, 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.
   687   return _shared_ci_symbols[index];
   687   return _shared_ci_symbols[index];
   688 }
   688 }
   689 
   689 
   690 // ------------------------------------------------------------------
   690 // ------------------------------------------------------------------
   691 // ciObjectFactory::metadata_do
   691 // ciObjectFactory::metadata_do
   692 void ciObjectFactory::metadata_do(void f(Metadata*)) {
   692 void ciObjectFactory::metadata_do(MetadataClosure* f) {
   693   if (_ci_metadata == NULL) return;
   693   if (_ci_metadata == NULL) return;
   694   for (int j = 0; j< _ci_metadata->length(); j++) {
   694   for (int j = 0; j< _ci_metadata->length(); j++) {
   695     Metadata* o = _ci_metadata->at(j)->constant_encoding();
   695     Metadata* o = _ci_metadata->at(j)->constant_encoding();
   696     f(o);
   696     f->do_metadata(o);
   697   }
   697   }
   698 }
   698 }
   699 
   699 
   700 // ------------------------------------------------------------------
   700 // ------------------------------------------------------------------
   701 // ciObjectFactory::print_contents_impl
   701 // ciObjectFactory::print_contents_impl