hotspot/src/share/vm/ci/ciInstance.cpp
changeset 8725 8c1e3dd5fe1b
parent 7397 5b173b4ca846
child 9123 4c7a8da5653b
equal deleted inserted replaced
8724:693c6b883b54 8725:8c1e3dd5fe1b
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2011, 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.
   136 // Implementation of the print method.
   136 // Implementation of the print method.
   137 void ciInstance::print_impl(outputStream* st) {
   137 void ciInstance::print_impl(outputStream* st) {
   138   st->print(" type=");
   138   st->print(" type=");
   139   klass()->print(st);
   139   klass()->print(st);
   140 }
   140 }
       
   141 
       
   142 
       
   143 ciKlass* ciInstance::java_lang_Class_klass() {
       
   144   VM_ENTRY_MARK;
       
   145   return CURRENT_ENV->get_object(java_lang_Class::as_klassOop(get_oop()))->as_klass();
       
   146 }