| 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 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 Loading... |
| 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 |
| OLD | NEW |