Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/parseHelper.cpp @ 1080:7c57aead6d3e
6892658: C2 should optimize some stringbuilder patterns
Reviewed-by: kvn, twisti
author | never |
---|---|
date | Thu, 12 Nov 2009 09:24:21 -0800 |
parents | bd02caa94611 |
children | 87684f1a88b5 |
comparison
equal
deleted
inserted
replaced
1078:8e7adf982378 | 1080:7c57aead6d3e |
---|---|
219 Node* kls = makecon(TypeKlassPtr::make(klass)); | 219 Node* kls = makecon(TypeKlassPtr::make(klass)); |
220 Node* obj = new_instance(kls); | 220 Node* obj = new_instance(kls); |
221 | 221 |
222 // Push resultant oop onto stack | 222 // Push resultant oop onto stack |
223 push(obj); | 223 push(obj); |
224 | |
225 // Keep track of whether opportunities exist for StringBuilder | |
226 // optimizations. | |
227 if (OptimizeStringConcat && | |
228 (klass == C->env()->StringBuilder_klass() || | |
229 klass == C->env()->StringBuffer_klass())) { | |
230 C->set_has_stringbuilder(true); | |
231 } | |
224 } | 232 } |
225 | 233 |
226 #ifndef PRODUCT | 234 #ifndef PRODUCT |
227 //------------------------------dump_map_adr_mem------------------------------- | 235 //------------------------------dump_map_adr_mem------------------------------- |
228 // Debug dump of the mapping from address types to MergeMemNode indices. | 236 // Debug dump of the mapping from address types to MergeMemNode indices. |