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 "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/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { | 670 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { |
671 return isolate_->TerminateExecution(); | 671 return isolate_->TerminateExecution(); |
672 } | 672 } |
673 | 673 |
674 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { | 674 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { |
675 isolate_->heap()->DeoptMarkedAllocationSites(); | 675 isolate_->heap()->DeoptMarkedAllocationSites(); |
676 } | 676 } |
677 | 677 |
678 if (CheckAndClearInterrupt(INSTALL_CODE)) { | 678 if (CheckAndClearInterrupt(INSTALL_CODE)) { |
679 DCHECK(isolate_->concurrent_recompilation_enabled()); | 679 DCHECK(isolate_->concurrent_recompilation_enabled()); |
680 isolate_->optimizing_compiler_thread()->InstallOptimizedFunctions(); | 680 isolate_->optimizing_compile_dispatcher()->InstallOptimizedFunctions(); |
681 } | 681 } |
682 | 682 |
683 if (CheckAndClearInterrupt(API_INTERRUPT)) { | 683 if (CheckAndClearInterrupt(API_INTERRUPT)) { |
684 // Callbacks must be invoked outside of ExecusionAccess lock. | 684 // Callbacks must be invoked outside of ExecusionAccess lock. |
685 isolate_->InvokeApiInterruptCallbacks(); | 685 isolate_->InvokeApiInterruptCallbacks(); |
686 } | 686 } |
687 | 687 |
688 isolate_->counters()->stack_interrupts()->Increment(); | 688 isolate_->counters()->stack_interrupts()->Increment(); |
689 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 689 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
690 isolate_->runtime_profiler()->OptimizeNow(); | 690 isolate_->runtime_profiler()->OptimizeNow(); |
691 | 691 |
692 return isolate_->heap()->undefined_value(); | 692 return isolate_->heap()->undefined_value(); |
693 } | 693 } |
694 | 694 |
695 } } // namespace v8::internal | 695 } } // namespace v8::internal |
OLD | NEW |