Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: src/execution.cc

Issue 9227007: Version 3.8.6 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/execution.h ('k') | src/factory.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 } 838 }
839 839
840 // Collect the break state before clearing the flags. 840 // Collect the break state before clearing the flags.
841 bool debug_command_only = 841 bool debug_command_only =
842 isolate->stack_guard()->IsDebugCommand() && 842 isolate->stack_guard()->IsDebugCommand() &&
843 !isolate->stack_guard()->IsDebugBreak(); 843 !isolate->stack_guard()->IsDebugBreak();
844 844
845 // Clear the debug break request flag. 845 // Clear the debug break request flag.
846 isolate->stack_guard()->Continue(DEBUGBREAK); 846 isolate->stack_guard()->Continue(DEBUGBREAK);
847 847
848 ProcessDebugMesssages(debug_command_only); 848 ProcessDebugMessages(debug_command_only);
849 849
850 // Return to continue execution. 850 // Return to continue execution.
851 return isolate->heap()->undefined_value(); 851 return isolate->heap()->undefined_value();
852 } 852 }
853 853
854 void Execution::ProcessDebugMesssages(bool debug_command_only) { 854 void Execution::ProcessDebugMessages(bool debug_command_only) {
855 Isolate* isolate = Isolate::Current(); 855 Isolate* isolate = Isolate::Current();
856 // Clear the debug command request flag. 856 // Clear the debug command request flag.
857 isolate->stack_guard()->Continue(DEBUGCOMMAND); 857 isolate->stack_guard()->Continue(DEBUGCOMMAND);
858 858
859 HandleScope scope(isolate); 859 HandleScope scope(isolate);
860 // Enter the debugger. Just continue if we fail to enter the debugger. 860 // Enter the debugger. Just continue if we fail to enter the debugger.
861 EnterDebugger debugger; 861 EnterDebugger debugger;
862 if (debugger.FailedToEnter()) { 862 if (debugger.FailedToEnter()) {
863 return; 863 return;
864 } 864 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 return isolate->TerminateExecution(); 898 return isolate->TerminateExecution();
899 } 899 }
900 if (stack_guard->IsInterrupted()) { 900 if (stack_guard->IsInterrupted()) {
901 stack_guard->Continue(INTERRUPT); 901 stack_guard->Continue(INTERRUPT);
902 return isolate->StackOverflow(); 902 return isolate->StackOverflow();
903 } 903 }
904 return isolate->heap()->undefined_value(); 904 return isolate->heap()->undefined_value();
905 } 905 }
906 906
907 } } // namespace v8::internal 907 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/execution.h ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698