OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1404 *mode = Debug::FRAME_DROPPED_IN_IC_CALL; | 1404 *mode = Debug::FRAME_DROPPED_IN_IC_CALL; |
1405 } else if (pre_top_frame_code == | 1405 } else if (pre_top_frame_code == |
1406 isolate->debug()->debug_break_slot()) { | 1406 isolate->debug()->debug_break_slot()) { |
1407 // OK, we can drop debug break slot. | 1407 // OK, we can drop debug break slot. |
1408 *mode = Debug::FRAME_DROPPED_IN_DEBUG_SLOT_CALL; | 1408 *mode = Debug::FRAME_DROPPED_IN_DEBUG_SLOT_CALL; |
1409 } else if (pre_top_frame_code == | 1409 } else if (pre_top_frame_code == |
1410 isolate->builtins()->builtin( | 1410 isolate->builtins()->builtin( |
1411 Builtins::kFrameDropper_LiveEdit)) { | 1411 Builtins::kFrameDropper_LiveEdit)) { |
1412 // OK, we can drop our own code. | 1412 // OK, we can drop our own code. |
1413 *mode = Debug::FRAME_DROPPED_IN_DIRECT_CALL; | 1413 *mode = Debug::FRAME_DROPPED_IN_DIRECT_CALL; |
| 1414 } else if (pre_top_frame_code == |
| 1415 isolate->builtins()->builtin(Builtins::kReturn_DebugBreak)) { |
| 1416 *mode = Debug::FRAME_DROPPED_IN_RETURN_CALL; |
1414 } else if (pre_top_frame_code->kind() == Code::STUB && | 1417 } else if (pre_top_frame_code->kind() == Code::STUB && |
1415 pre_top_frame_code->major_key()) { | 1418 pre_top_frame_code->major_key()) { |
1416 // Entry from our unit tests, it's fine, we support this case. | 1419 // Entry from our unit tests, it's fine, we support this case. |
1417 *mode = Debug::FRAME_DROPPED_IN_DIRECT_CALL; | 1420 *mode = Debug::FRAME_DROPPED_IN_DIRECT_CALL; |
1418 } else { | 1421 } else { |
1419 return "Unknown structure of stack above changing function"; | 1422 return "Unknown structure of stack above changing function"; |
1420 } | 1423 } |
1421 | 1424 |
1422 Address unused_stack_top = top_frame->sp(); | 1425 Address unused_stack_top = top_frame->sp(); |
1423 Address unused_stack_bottom = bottom_js_frame->fp() | 1426 Address unused_stack_bottom = bottom_js_frame->fp() |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1684 | 1687 |
1685 bool LiveEditFunctionTracker::IsActive() { | 1688 bool LiveEditFunctionTracker::IsActive() { |
1686 return false; | 1689 return false; |
1687 } | 1690 } |
1688 | 1691 |
1689 #endif // ENABLE_DEBUGGER_SUPPORT | 1692 #endif // ENABLE_DEBUGGER_SUPPORT |
1690 | 1693 |
1691 | 1694 |
1692 | 1695 |
1693 } } // namespace v8::internal | 1696 } } // namespace v8::internal |
OLD | NEW |