Mercurial > hg > graal-compiler
comparison src/share/vm/graal/graalCodeInstaller.cpp @ 3704:342a54994e05
Made C++ changes to reflect changes to CiAssumptions.ConcreteMethod.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 29 Nov 2011 16:04:18 +0100 |
parents | f8d7ab42c479 |
children | 0ac36a6d5ab0 |
comparison
equal
deleted
inserted
replaced
3703:50a1d38cd7ac | 3704:342a54994e05 |
---|---|
371 _dependencies->assert_abstract_with_unique_concrete_subtype(context, type); | 371 _dependencies->assert_abstract_with_unique_concrete_subtype(context, type); |
372 } | 372 } |
373 } | 373 } |
374 | 374 |
375 void CodeInstaller::assumption_ConcreteMethod(Handle assumption) { | 375 void CodeInstaller::assumption_ConcreteMethod(Handle assumption) { |
376 Handle method_handle = CiAssumptions_ConcreteMethod::method(assumption()); | 376 Handle impl_handle = CiAssumptions_ConcreteMethod::impl(assumption()); |
377 methodHandle method = getMethodFromHotSpotMethod(method_handle()); | 377 methodHandle impl = getMethodFromHotSpotMethod(impl_handle()); |
378 ciMethod* m = (ciMethod*) CURRENT_ENV->get_object(method()); | 378 ciMethod* m = (ciMethod*) CURRENT_ENV->get_object(impl()); |
379 | 379 |
380 Handle context_handle = CiAssumptions_ConcreteMethod::context(assumption()); | 380 Handle context_handle = CiAssumptions_ConcreteMethod::context(assumption()); |
381 methodHandle context = getMethodFromHotSpotMethod(context_handle()); | 381 ciKlass* context = (ciKlass*) CURRENT_ENV->get_object(java_lang_Class::as_klassOop(HotSpotTypeResolved::javaMirror(context_handle))); |
382 ciMethod* c = (ciMethod*) CURRENT_ENV->get_object(context()); | 382 _dependencies->assert_unique_concrete_method(context, m); |
383 ciKlass* context_klass = c->holder(); | |
384 _dependencies->assert_unique_concrete_method(context_klass, m); | |
385 } | 383 } |
386 | 384 |
387 void CodeInstaller::process_exception_handlers() { | 385 void CodeInstaller::process_exception_handlers() { |
388 // allocate some arrays for use by the collection code. | 386 // allocate some arrays for use by the collection code. |
389 const int num_handlers = 5; | 387 const int num_handlers = 5; |