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

Side by Side Diff: src/execution.cc

Issue 297303006: Some more debugger-related refactorings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
« src/debug.cc ('K') | « src/debug.cc ('k') | src/factory.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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 ExecutionAccess access(isolate_); 660 ExecutionAccess access(isolate_);
661 if (should_postpone_interrupts(access)) { 661 if (should_postpone_interrupts(access)) {
662 return isolate_->heap()->undefined_value(); 662 return isolate_->heap()->undefined_value();
663 } 663 }
664 664
665 if (CheckAndClearInterrupt(GC_REQUEST, access)) { 665 if (CheckAndClearInterrupt(GC_REQUEST, access)) {
666 isolate_->heap()->CollectAllGarbage(Heap::kNoGCFlags, "GC interrupt"); 666 isolate_->heap()->CollectAllGarbage(Heap::kNoGCFlags, "GC interrupt");
667 } 667 }
668 668
669 if (CheckDebugBreak() || CheckDebugCommand()) { 669 if (CheckDebugBreak() || CheckDebugCommand()) {
670 isolate_->debug()->DebugBreakHelper(); 670 isolate_->debug()->HandleDebugBreak();
671 } 671 }
672 672
673 if (CheckAndClearInterrupt(TERMINATE_EXECUTION, access)) { 673 if (CheckAndClearInterrupt(TERMINATE_EXECUTION, access)) {
674 return isolate_->TerminateExecution(); 674 return isolate_->TerminateExecution();
675 } 675 }
676 676
677 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES, access)) { 677 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES, access)) {
678 isolate_->heap()->DeoptMarkedAllocationSites(); 678 isolate_->heap()->DeoptMarkedAllocationSites();
679 } 679 }
680 680
(...skipping 11 matching lines...) Expand all
692 692
693 if (has_api_interrupt) { 693 if (has_api_interrupt) {
694 // Callback must be invoked outside of ExecusionAccess lock. 694 // Callback must be invoked outside of ExecusionAccess lock.
695 isolate_->InvokeApiInterruptCallback(); 695 isolate_->InvokeApiInterruptCallback();
696 } 696 }
697 697
698 return isolate_->heap()->undefined_value(); 698 return isolate_->heap()->undefined_value();
699 } 699 }
700 700
701 } } // namespace v8::internal 701 } } // namespace v8::internal
OLDNEW
« src/debug.cc ('K') | « src/debug.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698