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

Side by Side Diff: src/execution.cc

Issue 287873005: Simplify debugger state. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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/debug.cc ('k') | src/isolate.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "execution.h" 5 #include "execution.h"
6 6
7 #include "bootstrapper.h" 7 #include "bootstrapper.h"
8 #include "codegen.h" 8 #include "codegen.h"
9 #include "deoptimizer.h" 9 #include "deoptimizer.h"
10 #include "isolate-inl.h" 10 #include "isolate-inl.h"
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 !isolate->stack_guard()->CheckDebugBreak(); 707 !isolate->stack_guard()->CheckDebugBreak();
708 708
709 isolate->stack_guard()->ClearDebugBreak(); 709 isolate->stack_guard()->ClearDebugBreak();
710 710
711 Execution::ProcessDebugMessages(isolate, debug_command_only); 711 Execution::ProcessDebugMessages(isolate, debug_command_only);
712 } 712 }
713 713
714 714
715 void Execution::ProcessDebugMessages(Isolate* isolate, 715 void Execution::ProcessDebugMessages(Isolate* isolate,
716 bool debug_command_only) { 716 bool debug_command_only) {
717 // Assert that we are on the main thread of the isolate.
718 ASSERT(ThreadId::Current().Equals(isolate->thread_id()));
719
720 isolate->stack_guard()->ClearDebugCommand(); 717 isolate->stack_guard()->ClearDebugCommand();
721 718
722 StackLimitCheck check(isolate); 719 StackLimitCheck check(isolate);
723 if (check.HasOverflowed()) return; 720 if (check.HasOverflowed()) return;
724 721
725 HandleScope scope(isolate); 722 HandleScope scope(isolate);
726 // Enter the debugger. Just continue if we fail to enter the debugger. 723 // Enter the debugger. Just continue if we fail to enter the debugger.
727 EnterDebugger debugger(isolate); 724 EnterDebugger debugger(isolate);
728 if (debugger.FailedToEnter()) return; 725 if (debugger.FailedToEnter()) return;
729 726
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 isolate_->optimizing_compiler_thread()->InstallOptimizedFunctions(); 766 isolate_->optimizing_compiler_thread()->InstallOptimizedFunctions();
770 } 767 }
771 768
772 isolate_->counters()->stack_interrupts()->Increment(); 769 isolate_->counters()->stack_interrupts()->Increment();
773 isolate_->counters()->runtime_profiler_ticks()->Increment(); 770 isolate_->counters()->runtime_profiler_ticks()->Increment();
774 isolate_->runtime_profiler()->OptimizeNow(); 771 isolate_->runtime_profiler()->OptimizeNow();
775 return isolate_->heap()->undefined_value(); 772 return isolate_->heap()->undefined_value();
776 } 773 }
777 774
778 } } // namespace v8::internal 775 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698