Mercurial > hg > truffle
comparison src/share/vm/graal/graalCompilerToVM.cpp @ 9668:fe9a18fbb15e
added subclasses for HotSpotInstalledCode: HotSpotNmethod and HotSpotRuntimeStub
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Mon, 13 May 2013 18:19:43 +0200 |
parents | 18632807db02 |
children | ed6202820ecf |
comparison
equal
deleted
inserted
replaced
9667:1ef7b26e9177 | 9668:fe9a18fbb15e |
---|---|
893 assert(cb == NULL, "should be"); | 893 assert(cb == NULL, "should be"); |
894 } else { | 894 } else { |
895 if (!installed_code_handle.is_null()) { | 895 if (!installed_code_handle.is_null()) { |
896 assert(installed_code_handle->is_a(HotSpotInstalledCode::klass()), "wrong type"); | 896 assert(installed_code_handle->is_a(HotSpotInstalledCode::klass()), "wrong type"); |
897 HotSpotInstalledCode::set_codeBlob(installed_code_handle, (jlong) cb); | 897 HotSpotInstalledCode::set_codeBlob(installed_code_handle, (jlong) cb); |
898 HotSpotInstalledCode::set_method(installed_code_handle, HotSpotCompilationResult::method(compResult)); | |
899 HotSpotInstalledCode::set_start(installed_code_handle, (jlong) cb->code_begin()); | 898 HotSpotInstalledCode::set_start(installed_code_handle, (jlong) cb->code_begin()); |
900 nmethod* nm = cb->as_nmethod_or_null(); | 899 nmethod* nm = cb->as_nmethod_or_null(); |
901 assert(nm == NULL || !installed_code_handle->is_scavengable() || nm->on_scavenge_root_list(), "nm should be scavengable if installed_code is scavengable"); | 900 assert(nm == NULL || !installed_code_handle->is_scavengable() || nm->on_scavenge_root_list(), "nm should be scavengable if installed_code is scavengable"); |
902 } | 901 } |
903 } | 902 } |