OLD | NEW |
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 Loading... |
660 if (should_postpone_interrupts(access)) { | 660 if (should_postpone_interrupts(access)) { |
661 return isolate_->heap()->undefined_value(); | 661 return isolate_->heap()->undefined_value(); |
662 } | 662 } |
663 } | 663 } |
664 | 664 |
665 if (CheckAndClearInterrupt(GC_REQUEST)) { | 665 if (CheckAndClearInterrupt(GC_REQUEST)) { |
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)) { | 673 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { |
674 return isolate_->TerminateExecution(); | 674 return isolate_->TerminateExecution(); |
675 } | 675 } |
676 | 676 |
677 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { | 677 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { |
678 isolate_->heap()->DeoptMarkedAllocationSites(); | 678 isolate_->heap()->DeoptMarkedAllocationSites(); |
679 } | 679 } |
680 | 680 |
681 if (CheckAndClearInterrupt(INSTALL_CODE)) { | 681 if (CheckAndClearInterrupt(INSTALL_CODE)) { |
682 ASSERT(isolate_->concurrent_recompilation_enabled()); | 682 ASSERT(isolate_->concurrent_recompilation_enabled()); |
683 isolate_->optimizing_compiler_thread()->InstallOptimizedFunctions(); | 683 isolate_->optimizing_compiler_thread()->InstallOptimizedFunctions(); |
684 } | 684 } |
685 | 685 |
686 if (CheckAndClearInterrupt(API_INTERRUPT)) { | 686 if (CheckAndClearInterrupt(API_INTERRUPT)) { |
687 // Callback must be invoked outside of ExecusionAccess lock. | 687 // Callback must be invoked outside of ExecusionAccess lock. |
688 isolate_->InvokeApiInterruptCallback(); | 688 isolate_->InvokeApiInterruptCallback(); |
689 } | 689 } |
690 | 690 |
691 isolate_->counters()->stack_interrupts()->Increment(); | 691 isolate_->counters()->stack_interrupts()->Increment(); |
692 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 692 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
693 isolate_->runtime_profiler()->OptimizeNow(); | 693 isolate_->runtime_profiler()->OptimizeNow(); |
694 | 694 |
695 return isolate_->heap()->undefined_value(); | 695 return isolate_->heap()->undefined_value(); |
696 } | 696 } |
697 | 697 |
698 } } // namespace v8::internal | 698 } } // namespace v8::internal |
OLD | NEW |