OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 | 858 |
859 // Clear the debug break request flag. | 859 // Clear the debug break request flag. |
860 isolate->stack_guard()->Continue(DEBUGBREAK); | 860 isolate->stack_guard()->Continue(DEBUGBREAK); |
861 | 861 |
862 ProcessDebugMessages(debug_command_only); | 862 ProcessDebugMessages(debug_command_only); |
863 | 863 |
864 // Return to continue execution. | 864 // Return to continue execution. |
865 return isolate->heap()->undefined_value(); | 865 return isolate->heap()->undefined_value(); |
866 } | 866 } |
867 | 867 |
| 868 |
868 void Execution::ProcessDebugMessages(bool debug_command_only) { | 869 void Execution::ProcessDebugMessages(bool debug_command_only) { |
869 Isolate* isolate = Isolate::Current(); | 870 Isolate* isolate = Isolate::Current(); |
870 // Clear the debug command request flag. | 871 // Clear the debug command request flag. |
871 isolate->stack_guard()->Continue(DEBUGCOMMAND); | 872 isolate->stack_guard()->Continue(DEBUGCOMMAND); |
872 | 873 |
873 StackLimitCheck check(isolate); | 874 StackLimitCheck check(isolate); |
874 if (check.HasOverflowed()) { | 875 if (check.HasOverflowed()) { |
875 return; | 876 return; |
876 } | 877 } |
877 | 878 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 } | 923 } |
923 if (stack_guard->IsFullDeopt()) { | 924 if (stack_guard->IsFullDeopt()) { |
924 stack_guard->Continue(FULL_DEOPT); | 925 stack_guard->Continue(FULL_DEOPT); |
925 Deoptimizer::DeoptimizeAll(isolate); | 926 Deoptimizer::DeoptimizeAll(isolate); |
926 } | 927 } |
927 return isolate->heap()->undefined_value(); | 928 return isolate->heap()->undefined_value(); |
928 } | 929 } |
929 | 930 |
930 | 931 |
931 } } // namespace v8::internal | 932 } } // namespace v8::internal |
OLD | NEW |