Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/deoptimization.cpp @ 7936:c6c72de0537e
Remove setDeoptInfo functionality. Start getting rid of scratch register usages.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 05 Mar 2013 19:20:05 +0100 |
parents | 0b646334c5f7 |
children | 5fc51c1ecdeb |
comparison
equal
deleted
inserted
replaced
7935:0799a7efbe7b | 7936:c6c72de0537e |
---|---|
1310 | 1310 |
1311 ScopeDesc* trap_scope = cvf->scope(); | 1311 ScopeDesc* trap_scope = cvf->scope(); |
1312 | 1312 |
1313 if (TraceDeoptimization) { | 1313 if (TraceDeoptimization) { |
1314 tty->print_cr(" bci=%d pc=%d, relative_pc=%d, method=%s", trap_scope->bci(), fr.pc(), fr.pc() - nm->code_begin(), trap_scope->method()->name()->as_C_string()); | 1314 tty->print_cr(" bci=%d pc=%d, relative_pc=%d, method=%s", trap_scope->bci(), fr.pc(), fr.pc() - nm->code_begin(), trap_scope->method()->name()->as_C_string()); |
1315 #ifdef GRAAL | |
1316 if (thread->graal_deopt_info() != NULL) { | |
1317 oop deopt_info = thread->graal_deopt_info(); | |
1318 if (java_lang_String::is_instance(deopt_info)) { | |
1319 char buf[O_BUFLEN]; | |
1320 java_lang_String::as_utf8_string(deopt_info, buf, O_BUFLEN); | |
1321 tty->print_cr("deopt info: %s", buf); | |
1322 } else { | |
1323 tty->print_cr("deopt info:"); | |
1324 deopt_info->print(); | |
1325 } | |
1326 thread->set_graal_deopt_info(NULL); | |
1327 } | |
1328 #endif | |
1329 } | 1315 } |
1330 | 1316 |
1331 methodHandle trap_method = trap_scope->method(); | 1317 methodHandle trap_method = trap_scope->method(); |
1332 int trap_bci = trap_scope->bci(); | 1318 int trap_bci = trap_scope->bci(); |
1333 Bytecodes::Code trap_bc = trap_method->java_code_at(trap_bci); | 1319 Bytecodes::Code trap_bc = trap_method->java_code_at(trap_bci); |