Mercurial > hg > truffle
comparison src/share/vm/opto/graphKit.cpp @ 3280:548597e74aa4
7030715: JSR 292 JRuby test/test_super_call_site_caching.rb asserts with +DoEscapeAnalysis
Reviewed-by: twisti
author | never |
---|---|
date | Mon, 25 Apr 2011 16:25:58 -0700 |
parents | 66b0e2371912 |
children | 149bb459be66 |
comparison
equal
deleted
inserted
replaced
3279:08ccee2c4dbf | 3280:548597e74aa4 |
---|---|
1031 bool ignore; | 1031 bool ignore; |
1032 ciBytecodeStream iter(method()); | 1032 ciBytecodeStream iter(method()); |
1033 iter.reset_to_bci(bci()); | 1033 iter.reset_to_bci(bci()); |
1034 iter.next(); | 1034 iter.next(); |
1035 ciMethod* method = iter.get_method(ignore); | 1035 ciMethod* method = iter.get_method(ignore); |
1036 inputs = method->arg_size_no_receiver(); | |
1037 // Add a receiver argument, maybe: | |
1038 if (code != Bytecodes::_invokestatic && | |
1039 code != Bytecodes::_invokedynamic) | |
1040 inputs += 1; | |
1041 // (Do not use ciMethod::arg_size(), because | 1036 // (Do not use ciMethod::arg_size(), because |
1042 // it might be an unloaded method, which doesn't | 1037 // it might be an unloaded method, which doesn't |
1043 // know whether it is static or not.) | 1038 // know whether it is static or not.) |
1039 inputs = method->invoke_arg_size(code); | |
1044 int size = method->return_type()->size(); | 1040 int size = method->return_type()->size(); |
1045 depth = size - inputs; | 1041 depth = size - inputs; |
1046 } | 1042 } |
1047 break; | 1043 break; |
1048 | 1044 |