equal
deleted
inserted
replaced
1458 // allows the compiled code to stay around until enough traps are seen, |
1458 // allows the compiled code to stay around until enough traps are seen, |
1459 // and until the compiler gets around to recompiling the trapping method. |
1459 // and until the compiler gets around to recompiling the trapping method. |
1460 // |
1460 // |
1461 // The other actions cause immediate removal of the present code. |
1461 // The other actions cause immediate removal of the present code. |
1462 |
1462 |
1463 bool update_trap_state = (reason != Reason_tenured); |
1463 // Traps caused by injected profile shouldn't pollute trap counts. |
|
1464 bool injected_profile_trap = trap_method->has_injected_profile() && |
|
1465 (reason == Reason_intrinsic || reason == Reason_unreached); |
|
1466 |
|
1467 bool update_trap_state = (reason != Reason_tenured) && !injected_profile_trap; |
1464 bool make_not_entrant = false; |
1468 bool make_not_entrant = false; |
1465 bool make_not_compilable = false; |
1469 bool make_not_compilable = false; |
1466 bool reprofile = false; |
1470 bool reprofile = false; |
1467 switch (action) { |
1471 switch (action) { |
1468 case Action_none: |
1472 case Action_none: |