| 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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 if (!maybe_result.ToHandle(&result) || !result->IsString()) { | 712 if (!maybe_result.ToHandle(&result) || !result->IsString()) { |
| 713 return isolate->factory()->empty_string(); | 713 return isolate->factory()->empty_string(); |
| 714 } | 714 } |
| 715 | 715 |
| 716 return Handle<String>::cast(result); | 716 return Handle<String>::cast(result); |
| 717 } | 717 } |
| 718 | 718 |
| 719 | 719 |
| 720 Object* StackGuard::HandleInterrupts() { | 720 Object* StackGuard::HandleInterrupts() { |
| 721 if (CheckAndClearInterrupt(GC_REQUEST)) { | 721 if (CheckAndClearInterrupt(GC_REQUEST)) { |
| 722 isolate_->heap()->CollectAllGarbage(Heap::kNoGCFlags, "GC interrupt"); | 722 isolate_->heap()->HandleGCRequest(); |
| 723 } | 723 } |
| 724 | 724 |
| 725 if (CheckDebugBreak() || CheckDebugCommand()) { | 725 if (CheckDebugBreak() || CheckDebugCommand()) { |
| 726 isolate_->debug()->HandleDebugBreak(); | 726 isolate_->debug()->HandleDebugBreak(); |
| 727 } | 727 } |
| 728 | 728 |
| 729 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { | 729 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { |
| 730 return isolate_->TerminateExecution(); | 730 return isolate_->TerminateExecution(); |
| 731 } | 731 } |
| 732 | 732 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 745 } | 745 } |
| 746 | 746 |
| 747 isolate_->counters()->stack_interrupts()->Increment(); | 747 isolate_->counters()->stack_interrupts()->Increment(); |
| 748 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 748 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
| 749 isolate_->runtime_profiler()->OptimizeNow(); | 749 isolate_->runtime_profiler()->OptimizeNow(); |
| 750 | 750 |
| 751 return isolate_->heap()->undefined_value(); | 751 return isolate_->heap()->undefined_value(); |
| 752 } | 752 } |
| 753 | 753 |
| 754 } } // namespace v8::internal | 754 } } // namespace v8::internal |
| OLD | NEW |