Mercurial > hg > graal-compiler
comparison src/share/vm/ci/ciObjectFactory.cpp @ 3650:0e8a2a629afb
Pass-by compilation broker.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 16 Nov 2011 21:27:28 +0100 |
parents | 0654ee04b214 |
children | 53636e2c9d03 |
comparison
equal
deleted
inserted
replaced
3649:5a8c44b5fb80 | 3650:0e8a2a629afb |
---|---|
228 | 228 |
229 ciSymbol* ciObjectFactory::get_symbol(Symbol* key) { | 229 ciSymbol* ciObjectFactory::get_symbol(Symbol* key) { |
230 vmSymbols::SID sid = vmSymbols::find_sid(key); | 230 vmSymbols::SID sid = vmSymbols::find_sid(key); |
231 if (sid != vmSymbols::NO_SID) { | 231 if (sid != vmSymbols::NO_SID) { |
232 // do not pollute the main cache with it | 232 // do not pollute the main cache with it |
233 return vm_symbol_at(sid); | 233 ciSymbol* result = vm_symbol_at(sid); |
234 assert(result != NULL, ""); | |
235 return result; | |
234 } | 236 } |
235 | 237 |
236 assert(vmSymbols::find_sid(key) == vmSymbols::NO_SID, ""); | 238 assert(vmSymbols::find_sid(key) == vmSymbols::NO_SID, ""); |
237 ciSymbol* s = new (arena()) ciSymbol(key, vmSymbols::NO_SID); | 239 ciSymbol* s = new (arena()) ciSymbol(key, vmSymbols::NO_SID); |
238 _symbols->push(s); | 240 _symbols->push(s); |