Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/signature.cpp @ 1513:df736661d0c8
Merge
author | jrose |
---|---|
date | Tue, 11 May 2010 15:19:19 -0700 |
parents | f03d0a26bf83 2ffde6cfe049 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1496:e8e83be27dd7 | 1513:df736661d0c8 |
---|---|
325 | 325 |
326 symbolOop result = oopFactory::new_symbol(_signature, begin, end, CHECK_NULL); | 326 symbolOop result = oopFactory::new_symbol(_signature, begin, end, CHECK_NULL); |
327 return result; | 327 return result; |
328 } | 328 } |
329 | 329 |
330 klassOop SignatureStream::as_klass(Handle class_loader, Handle protection_domain, | |
331 FailureMode failure_mode, TRAPS) { | |
332 if (!is_object()) return NULL; | |
333 symbolOop name = as_symbol(CHECK_NULL); | |
334 if (failure_mode == ReturnNull) { | |
335 return SystemDictionary::resolve_or_null(name, class_loader, protection_domain, THREAD); | |
336 } else { | |
337 bool throw_error = (failure_mode == NCDFError); | |
338 return SystemDictionary::resolve_or_fail(name, class_loader, protection_domain, throw_error, THREAD); | |
339 } | |
340 } | |
341 | |
342 oop SignatureStream::as_java_mirror(Handle class_loader, Handle protection_domain, | |
343 FailureMode failure_mode, TRAPS) { | |
344 if (!is_object()) | |
345 return Universe::java_mirror(type()); | |
346 klassOop klass = as_klass(class_loader, protection_domain, failure_mode, CHECK_NULL); | |
347 if (klass == NULL) return NULL; | |
348 return Klass::cast(klass)->java_mirror(); | |
349 } | |
330 | 350 |
331 symbolOop SignatureStream::as_symbol_or_null() { | 351 symbolOop SignatureStream::as_symbol_or_null() { |
332 // Create a symbol from for string _begin _end | 352 // Create a symbol from for string _begin _end |
333 ResourceMark rm; | 353 ResourceMark rm; |
334 | 354 |