Mercurial > hg > graal-jvmci-8
diff src/share/vm/ci/ciMethod.cpp @ 1748:3e8fbc61cee8
6978355: renaming for 6961697
Summary: This is the renaming part of 6961697 to keep the actual changes small for review.
Reviewed-by: kvn, never
author | twisti |
---|---|
date | Wed, 25 Aug 2010 05:27:54 -0700 |
parents | d2ede61b7a12 |
children | d5d065957597 |
line wrap: on
line diff
--- a/src/share/vm/ci/ciMethod.cpp Mon Aug 23 09:09:36 2010 -0700 +++ b/src/share/vm/ci/ciMethod.cpp Wed Aug 25 05:27:54 2010 -0700 @@ -922,12 +922,12 @@ // ------------------------------------------------------------------ // ciMethod::instructions_size -// This is a rough metric for "fat" methods, compared -// before inlining with InlineSmallCode. -// The CodeBlob::instructions_size accessor includes -// junk like exception handler, stubs, and constant table, -// which are not highly relevant to an inlined method. -// So we use the more specific accessor nmethod::code_size. +// +// This is a rough metric for "fat" methods, compared before inlining +// with InlineSmallCode. The CodeBlob::code_size accessor includes +// junk like exception handler, stubs, and constant table, which are +// not highly relevant to an inlined method. So we use the more +// specific accessor nmethod::insts_size. int ciMethod::instructions_size() { GUARDED_VM_ENTRY( nmethod* code = get_methodOop()->code(); @@ -939,7 +939,7 @@ (TieredCompilation && code->compiler() != NULL && code->compiler()->is_c1())) { return 0; } - return code->code_end() - code->verified_entry_point(); + return code->insts_end() - code->verified_entry_point(); ) }