Mercurial > hg > truffle
diff src/share/vm/opto/library_call.cpp @ 12242:884ed7a10f09
Merge
author | tschatzl |
---|---|
date | Mon, 16 Sep 2013 09:41:03 +0200 |
parents | 7944aba7ba41 edb5ab0f3fe5 |
children | da051ce490eb |
line wrap: on
line diff
--- a/src/share/vm/opto/library_call.cpp Fri Sep 13 07:57:13 2013 +0200 +++ b/src/share/vm/opto/library_call.cpp Mon Sep 16 09:41:03 2013 +0200 @@ -1280,6 +1280,11 @@ const TypeAry* target_array_type = TypeAry::make(TypeInt::CHAR, TypeInt::make(0, target_length, Type::WidenMin)); const TypeAryPtr* target_type = TypeAryPtr::make(TypePtr::BotPTR, target_array_type, target_array->klass(), true, Type::OffsetBot); + // String.value field is known to be @Stable. + if (UseImplicitStableValues) { + target = cast_array_to_stable(target, target_type); + } + IdealKit kit(this, false, true); #define __ kit. Node* zero = __ ConI(0);