< prev index next >
src/hotspot/share/opto/graphKit.cpp
Print this page
rev 53705 : 8217383: Obsolete UseImplicitStableValues
Reviewed-by: vlivanov
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2019, 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
@@ -3880,14 +3880,10 @@
TypeAry::make(TypeInt::BYTE, TypeInt::POS),
ciTypeArrayKlass::make(T_BYTE), true, 0);
Node* p = basic_plus_adr(str, str, value_offset);
Node* load = access_load_at(str, p, value_field_type, value_type, T_OBJECT,
IN_HEAP | (set_ctrl ? C2_CONTROL_DEPENDENT_LOAD : 0) | MO_UNORDERED);
- // String.value field is known to be @Stable.
- if (UseImplicitStableValues) {
- load = cast_array_to_stable(load, value_type);
- }
return load;
}
Node* GraphKit::load_String_coder(Node* str, bool set_ctrl) {
if (!CompactStrings) {
@@ -3895,11 +3891,10 @@
}
int coder_offset = java_lang_String::coder_offset_in_bytes();
const TypeInstPtr* string_type = TypeInstPtr::make(TypePtr::NotNull, C->env()->String_klass(),
false, NULL, 0);
const TypePtr* coder_field_type = string_type->add_offset(coder_offset);
- int coder_field_idx = C->get_alias_index(coder_field_type);
Node* p = basic_plus_adr(str, str, coder_offset);
Node* load = access_load_at(str, p, coder_field_type, TypeInt::BYTE, T_BYTE,
IN_HEAP | (set_ctrl ? C2_CONTROL_DEPENDENT_LOAD : 0) | MO_UNORDERED);
return load;
@@ -4033,11 +4028,5 @@
if (con_type != NULL) {
return makecon(con_type);
}
return NULL;
}
-
-Node* GraphKit::cast_array_to_stable(Node* ary, const TypeAryPtr* ary_type) {
- // Reify the property as a CastPP node in Ideal graph to comply with monotonicity
- // assumption of CCP analysis.
- return _gvn.transform(new CastPPNode(ary, ary_type->cast_to_stable(true)));
-}
< prev index next >