equal
deleted
inserted
replaced
31 #include "c1/c1_Runtime1.hpp" |
31 #include "c1/c1_Runtime1.hpp" |
32 #include "c1/c1_ValueStack.hpp" |
32 #include "c1/c1_ValueStack.hpp" |
33 #include "ci/ciArray.hpp" |
33 #include "ci/ciArray.hpp" |
34 #include "ci/ciObjArrayKlass.hpp" |
34 #include "ci/ciObjArrayKlass.hpp" |
35 #include "ci/ciTypeArrayKlass.hpp" |
35 #include "ci/ciTypeArrayKlass.hpp" |
|
36 #include "runtime/safepointMechanism.hpp" |
36 #include "runtime/sharedRuntime.hpp" |
37 #include "runtime/sharedRuntime.hpp" |
37 #include "runtime/stubRoutines.hpp" |
38 #include "runtime/stubRoutines.hpp" |
38 #include "vmreg_sparc.inline.hpp" |
39 #include "vmreg_sparc.inline.hpp" |
39 |
40 |
40 #ifdef ASSERT |
41 #ifdef ASSERT |
1302 |
1303 |
1303 // add safepoint before generating condition code so it can be recomputed |
1304 // add safepoint before generating condition code so it can be recomputed |
1304 if (x->is_safepoint()) { |
1305 if (x->is_safepoint()) { |
1305 // increment backedge counter if needed |
1306 // increment backedge counter if needed |
1306 increment_backedge_counter(state_for(x, x->state_before()), x->profiled_bci()); |
1307 increment_backedge_counter(state_for(x, x->state_before()), x->profiled_bci()); |
1307 __ safepoint(new_register(T_INT), state_for(x, x->state_before())); |
1308 __ safepoint(safepoint_poll_register(), state_for(x, x->state_before())); |
1308 } |
1309 } |
1309 |
1310 |
1310 __ cmp(lir_cond(cond), left, right); |
1311 __ cmp(lir_cond(cond), left, right); |
1311 // Generate branch profiling. Profiling code doesn't kill flags. |
1312 // Generate branch profiling. Profiling code doesn't kill flags. |
1312 profile_branch(x, cond); |
1313 profile_branch(x, cond); |