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

Side by Side Diff: src/execution.cc

Issue 1321543004: [futex] Allow debugger to break in the middle of a futexWait Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: pass parameter through HandleInterrupts Created 5 years, 3 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
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 "src/execution.h" 5 #include "src/execution.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 } 639 }
640 640
641 641
642 void StackGuard::HandleGCInterrupt() { 642 void StackGuard::HandleGCInterrupt() {
643 if (CheckAndClearInterrupt(GC_REQUEST)) { 643 if (CheckAndClearInterrupt(GC_REQUEST)) {
644 isolate_->heap()->HandleGCRequest(); 644 isolate_->heap()->HandleGCRequest();
645 } 645 }
646 } 646 }
647 647
648 648
649 Object* StackGuard::HandleInterrupts() { 649 Object* StackGuard::HandleInterrupts(BreakInNonDebuggableFlag flag) {
650 if (CheckAndClearInterrupt(GC_REQUEST)) { 650 if (CheckAndClearInterrupt(GC_REQUEST)) {
651 isolate_->heap()->HandleGCRequest(); 651 isolate_->heap()->HandleGCRequest();
652 } 652 }
653 653
654 if (CheckDebugBreak() || CheckDebugCommand()) { 654 if (CheckDebugBreak() || CheckDebugCommand()) {
655 isolate_->debug()->HandleDebugBreak(); 655 isolate_->debug()->HandleDebugBreak(flag);
656 } 656 }
657 657
658 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { 658 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) {
659 return isolate_->TerminateExecution(); 659 return isolate_->TerminateExecution();
660 } 660 }
661 661
662 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { 662 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) {
663 isolate_->heap()->DeoptMarkedAllocationSites(); 663 isolate_->heap()->DeoptMarkedAllocationSites();
664 } 664 }
665 665
666 if (CheckAndClearInterrupt(INSTALL_CODE)) { 666 if (CheckAndClearInterrupt(INSTALL_CODE)) {
667 DCHECK(isolate_->concurrent_recompilation_enabled()); 667 DCHECK(isolate_->concurrent_recompilation_enabled());
668 isolate_->optimizing_compile_dispatcher()->InstallOptimizedFunctions(); 668 isolate_->optimizing_compile_dispatcher()->InstallOptimizedFunctions();
669 } 669 }
670 670
671 if (CheckAndClearInterrupt(API_INTERRUPT)) { 671 if (CheckAndClearInterrupt(API_INTERRUPT)) {
672 // Callbacks must be invoked outside of ExecusionAccess lock. 672 // Callbacks must be invoked outside of ExecusionAccess lock.
673 isolate_->InvokeApiInterruptCallbacks(); 673 isolate_->InvokeApiInterruptCallbacks();
674 } 674 }
675 675
676 isolate_->counters()->stack_interrupts()->Increment(); 676 isolate_->counters()->stack_interrupts()->Increment();
677 isolate_->counters()->runtime_profiler_ticks()->Increment(); 677 isolate_->counters()->runtime_profiler_ticks()->Increment();
678 isolate_->runtime_profiler()->OptimizeNow(); 678 isolate_->runtime_profiler()->OptimizeNow();
679 679
680 return isolate_->heap()->undefined_value(); 680 return isolate_->heap()->undefined_value();
681 } 681 }
682 682
683 } // namespace internal 683 } // namespace internal
684 } // namespace v8 684 } // namespace v8
OLDNEW
« src/execution.h ('K') | « src/execution.h ('k') | src/futex-emulation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698