Skip to content

Commit 65b77d5

Browse files
committed
8256738: Compiler interface clean-up
Reviewed-by: neliasso, kvn, thartmann
1 parent 69c3470 commit 65b77d5

21 files changed

+5
-216
lines changed

src/hotspot/share/ci/bcEscapeAnalyzer.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class BCEscapeAnalyzer : public ResourceObj {
6363
bool _allocated_escapes;
6464
bool _unknown_modified;
6565

66-
GrowableArray<ciMetadata *> _dependencies;
66+
GrowableArray<ciMetadata*> _dependencies;
6767

6868
ciMethodBlocks *_methodBlocks;
6969

src/hotspot/share/ci/ciArray.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,9 @@ class ciArray : public ciObject {
4141
int _length;
4242

4343
protected:
44-
ciArray( arrayHandle h_a) : ciObject(h_a), _length(h_a()->length()) {}
4544
ciArray( objArrayHandle h_a) : ciObject(h_a), _length(h_a()->length()) {}
4645
ciArray(typeArrayHandle h_a) : ciObject(h_a), _length(h_a()->length()) {}
4746

48-
ciArray(ciKlass* klass, int len) : ciObject(klass), _length(len) {}
49-
5047
arrayOop get_arrayOop() const { return (arrayOop)get_oop(); }
5148

5249
const char* type_string() { return "ciArray"; }

src/hotspot/share/ci/ciCallProfile.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,13 @@ class ciCallProfile : StackObj {
4343
int _morphism; // determined call site's morphism
4444
int _count; // # times has this call been executed
4545
int _receiver_count[MorphismLimit + 1]; // # times receivers have been seen
46-
ciMethod* _method[MorphismLimit + 1]; // receivers methods
4746
ciKlass* _receiver[MorphismLimit + 1]; // receivers (exact)
4847

4948
ciCallProfile() {
5049
_limit = 0;
5150
_morphism = 0;
5251
_count = -1;
5352
_receiver_count[0] = -1;
54-
_method[0] = NULL;
5553
_receiver[0] = NULL;
5654
}
5755

@@ -71,10 +69,6 @@ class ciCallProfile : StackObj {
7169
assert(i < _limit, "out of Call Profile MorphismLimit");
7270
return (float)_receiver_count[i]/(float)_count;
7371
}
74-
ciMethod* method(int i) {
75-
assert(i < _limit, "out of Call Profile MorphismLimit");
76-
return _method[i];
77-
}
7872
ciKlass* receiver(int i) {
7973
assert(i < _limit, "out of Call Profile MorphismLimit");
8074
return _receiver[i];

src/hotspot/share/ci/ciCallSite.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,6 @@ bool ciCallSite::is_fully_initialized_constant_call_site() {
4343
}
4444
}
4545

46-
// ------------------------------------------------------------------
47-
// ciCallSite::get_target
48-
//
49-
// Return the target MethodHandle of this CallSite.
50-
ciMethodHandle* ciCallSite::get_target() const {
51-
VM_ENTRY_MARK;
52-
oop method_handle_oop = java_lang_invoke_CallSite::target(get_oop());
53-
return CURRENT_ENV->get_object(method_handle_oop)->as_method_handle();
54-
}
55-
5646
// ------------------------------------------------------------------
5747
// ciCallSite::print
5848
//

src/hotspot/share/ci/ciCallSite.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ class ciCallSite : public ciInstance {
4242

4343
bool is_fully_initialized_constant_call_site();
4444

45-
// Return the target MethodHandle of this CallSite.
46-
ciMethodHandle* get_target() const;
47-
4845
void print();
4946
};
5047

src/hotspot/share/ci/ciEnv.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,9 @@ void ciEnv::cache_dtrace_flags() {
286286
// Need lock?
287287
_dtrace_extended_probes = ExtendedDTraceProbes;
288288
if (_dtrace_extended_probes) {
289-
_dtrace_monitor_probes = true;
290289
_dtrace_method_probes = true;
291290
_dtrace_alloc_probes = true;
292291
} else {
293-
_dtrace_monitor_probes = DTraceMonitorProbes;
294292
_dtrace_method_probes = DTraceMethodProbes;
295293
_dtrace_alloc_probes = DTraceAllocProbes;
296294
}
@@ -367,21 +365,6 @@ ciMethod* ciEnv::get_method_from_handle(Method* method) {
367365
return get_metadata(method)->as_method();
368366
}
369367

370-
// ------------------------------------------------------------------
371-
// ciEnv::array_element_offset_in_bytes
372-
int ciEnv::array_element_offset_in_bytes(ciArray* a_h, ciObject* o_h) {
373-
VM_ENTRY_MARK;
374-
objArrayOop a = (objArrayOop)a_h->get_oop();
375-
assert(a->is_objArray(), "");
376-
int length = a->length();
377-
oop o = o_h->get_oop();
378-
for (int i = 0; i < length; i++) {
379-
if (a->obj_at(i) == o) return i;
380-
}
381-
return -1;
382-
}
383-
384-
385368
// ------------------------------------------------------------------
386369
// ciEnv::check_klass_accessiblity
387370
//
@@ -1127,14 +1110,6 @@ void ciEnv::register_method(ciMethod* target,
11271110
}
11281111
}
11291112

1130-
1131-
// ------------------------------------------------------------------
1132-
// ciEnv::find_system_klass
1133-
ciKlass* ciEnv::find_system_klass(ciSymbol* klass_name) {
1134-
VM_ENTRY_MARK;
1135-
return get_klass_by_name_impl(NULL, constantPoolHandle(), klass_name, false);
1136-
}
1137-
11381113
// ------------------------------------------------------------------
11391114
// ciEnv::comp_level
11401115
int ciEnv::comp_level() {

src/hotspot/share/ci/ciEnv.hpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ class ciEnv : StackObj {
7878

7979
// Cache DTrace flags
8080
bool _dtrace_extended_probes;
81-
bool _dtrace_monitor_probes;
8281
bool _dtrace_method_probes;
8382
bool _dtrace_alloc_probes;
8483

@@ -355,7 +354,6 @@ class ciEnv : StackObj {
355354
// Cache DTrace flags
356355
void cache_dtrace_flags();
357356
bool dtrace_extended_probes() const { return _dtrace_extended_probes; }
358-
bool dtrace_monitor_probes() const { return _dtrace_monitor_probes; }
359357
bool dtrace_method_probes() const { return _dtrace_method_probes; }
360358
bool dtrace_alloc_probes() const { return _dtrace_alloc_probes; }
361359

@@ -419,7 +417,6 @@ class ciEnv : StackObj {
419417
}
420418
ciInstance* unloaded_ciinstance();
421419

422-
ciKlass* find_system_klass(ciSymbol* klass_name);
423420
// Note: To find a class from its name string, use ciSymbol::make,
424421
// but consider adding to vmSymbols.hpp instead.
425422

@@ -429,10 +426,6 @@ class ciEnv : StackObj {
429426
// array types into java/lang/Object and other types stay as they are.
430427
static ciInstanceKlass* get_instance_klass_for_declared_method_holder(ciKlass* klass);
431428

432-
// Return the machine-level offset of o, which must be an element of a.
433-
// This may be used to form constant-loading expressions in lieu of simpler encodings.
434-
int array_element_offset_in_bytes(ciArray* a, ciObject* o);
435-
436429
// Access to the compile-lifetime allocation arena.
437430
Arena* arena() { return _arena; }
438431

src/hotspot/share/ci/ciExceptionHandler.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ class ciExceptionHandler : public ResourceObj {
7272
bool is_in_range(int bci) {
7373
return start() <= bci && bci < limit();
7474
}
75-
bool catches(ciInstanceKlass *exc) {
76-
return is_catch_all() || exc->is_subtype_of(catch_klass());
77-
}
7875
bool is_rethrow() { return handler_bci() == -1; }
7976

8077
void print();

src/hotspot/share/ci/ciInstance.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ class ciInstance : public ciObject {
4545

4646
ciInstance(ciKlass* klass) : ciObject(klass) {}
4747

48-
instanceOop get_instanceOop() { return (instanceOop)get_oop(); }
49-
5048
const char* type_string() { return "ciInstance"; }
5149

5250
void print_impl(outputStream* st);
@@ -61,7 +59,6 @@ class ciInstance : public ciObject {
6159

6260
// What kind of ciObject is this?
6361
bool is_instance() { return true; }
64-
bool is_java_object() { return true; }
6562

6663
// Constant value of a field.
6764
ciConstant field_value(ciField* field);

src/hotspot/share/ci/ciKlass.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,6 @@ ciKlass* ciKlass::super_of_depth(juint i) {
122122
return (super != NULL) ? CURRENT_THREAD_ENV->get_klass(super) : NULL;
123123
}
124124

125-
// ------------------------------------------------------------------
126-
// ciKlass::can_be_primary_super
127-
bool ciKlass::can_be_primary_super() {
128-
assert(is_loaded(), "must be loaded");
129-
130-
VM_ENTRY_MARK;
131-
Klass* this_klass = get_Klass();
132-
return this_klass->can_be_primary_super();
133-
}
134-
135125
// ------------------------------------------------------------------
136126
// ciKlass::least_common_ancestor
137127
//

0 commit comments

Comments
 (0)