| 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/compiler-dispatcher/optimizing-compile-dispatcher.h" | 9 #include "src/compiler-dispatcher/optimizing-compile-dispatcher.h" |
| 10 #include "src/isolate-inl.h" | 10 #include "src/isolate-inl.h" |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 Object* StackGuard::HandleInterrupts() { | 444 Object* StackGuard::HandleInterrupts() { |
| 445 if (FLAG_verify_predictable) { | 445 if (FLAG_verify_predictable) { |
| 446 // Advance synthetic time by making a time request. | 446 // Advance synthetic time by making a time request. |
| 447 isolate_->heap()->MonotonicallyIncreasingTimeInMs(); | 447 isolate_->heap()->MonotonicallyIncreasingTimeInMs(); |
| 448 } | 448 } |
| 449 | 449 |
| 450 if (CheckAndClearInterrupt(GC_REQUEST)) { | 450 if (CheckAndClearInterrupt(GC_REQUEST)) { |
| 451 isolate_->heap()->HandleGCRequest(); | 451 isolate_->heap()->HandleGCRequest(); |
| 452 } | 452 } |
| 453 | 453 |
| 454 if (CheckDebugBreak() || CheckDebugCommand()) { | 454 if (CheckDebugBreak()) { |
| 455 isolate_->debug()->HandleDebugBreak(); | 455 isolate_->debug()->HandleDebugBreak(); |
| 456 } | 456 } |
| 457 | 457 |
| 458 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { | 458 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { |
| 459 return isolate_->TerminateExecution(); | 459 return isolate_->TerminateExecution(); |
| 460 } | 460 } |
| 461 | 461 |
| 462 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { | 462 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { |
| 463 isolate_->heap()->DeoptMarkedAllocationSites(); | 463 isolate_->heap()->DeoptMarkedAllocationSites(); |
| 464 } | 464 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 475 | 475 |
| 476 isolate_->counters()->stack_interrupts()->Increment(); | 476 isolate_->counters()->stack_interrupts()->Increment(); |
| 477 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 477 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
| 478 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); | 478 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); |
| 479 | 479 |
| 480 return isolate_->heap()->undefined_value(); | 480 return isolate_->heap()->undefined_value(); |
| 481 } | 481 } |
| 482 | 482 |
| 483 } // namespace internal | 483 } // namespace internal |
| 484 } // namespace v8 | 484 } // namespace v8 |
| OLD | NEW |