mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8139203: Consistent naming for klass type predicates
8138923: Remove oop coupling with InstanceKlass subclasses Renamed oop_is_instance and friends, removed the functions in oop that dug down into InstanceKlass. Reviewed-by: jrose, lfoltan, stefank
This commit is contained in:
parent
5179fc3488
commit
fc03719078
68 changed files with 257 additions and 279 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2015, 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
|
||||
|
@ -60,7 +60,7 @@ class ObjArrayKlass : public ArrayKlass {
|
|||
bool can_be_primary_super_slow() const;
|
||||
GrowableArray<Klass*>* compute_secondary_supers(int num_extra_slots);
|
||||
bool compute_is_subtype_of(Klass* k);
|
||||
bool oop_is_objArray_slow() const { return true; }
|
||||
DEBUG_ONLY(bool is_objArray_klass_slow() const { return true; })
|
||||
int oop_size(oop obj) const;
|
||||
|
||||
// Allocation
|
||||
|
@ -91,8 +91,8 @@ class ObjArrayKlass : public ArrayKlass {
|
|||
public:
|
||||
// Casting from Klass*
|
||||
static ObjArrayKlass* cast(Klass* k) {
|
||||
assert(k->oop_is_objArray(), "cast to ObjArrayKlass");
|
||||
return (ObjArrayKlass*) k;
|
||||
assert(k->is_objArray_klass(), "cast to ObjArrayKlass");
|
||||
return static_cast<ObjArrayKlass*>(k);
|
||||
}
|
||||
|
||||
// Sizing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue