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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 Object* StackGuard::HandleInterrupts() { | 462 Object* StackGuard::HandleInterrupts() { |
463 if (FLAG_verify_predictable) { | 463 if (FLAG_verify_predictable) { |
464 // Advance synthetic time by making a time request. | 464 // Advance synthetic time by making a time request. |
465 isolate_->heap()->MonotonicallyIncreasingTimeInMs(); | 465 isolate_->heap()->MonotonicallyIncreasingTimeInMs(); |
466 } | 466 } |
467 | 467 |
468 if (CheckAndClearInterrupt(GC_REQUEST)) { | 468 if (CheckAndClearInterrupt(GC_REQUEST)) { |
469 isolate_->heap()->HandleGCRequest(); | 469 isolate_->heap()->HandleGCRequest(); |
470 } | 470 } |
471 | 471 |
472 if (CheckDebugBreak()) { | 472 if (CheckDebugBreak() || CheckDebugCommand()) { |
473 isolate_->debug()->HandleDebugBreak(); | 473 isolate_->debug()->HandleDebugBreak(); |
474 } | 474 } |
475 | 475 |
476 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { | 476 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { |
477 return isolate_->TerminateExecution(); | 477 return isolate_->TerminateExecution(); |
478 } | 478 } |
479 | 479 |
480 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { | 480 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { |
481 isolate_->heap()->DeoptMarkedAllocationSites(); | 481 isolate_->heap()->DeoptMarkedAllocationSites(); |
482 } | 482 } |
(...skipping 10 matching lines...) Expand all Loading... |
493 | 493 |
494 isolate_->counters()->stack_interrupts()->Increment(); | 494 isolate_->counters()->stack_interrupts()->Increment(); |
495 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 495 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
496 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); | 496 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); |
497 | 497 |
498 return isolate_->heap()->undefined_value(); | 498 return isolate_->heap()->undefined_value(); |
499 } | 499 } |
500 | 500 |
501 } // namespace internal | 501 } // namespace internal |
502 } // namespace v8 | 502 } // namespace v8 |
OLD | NEW |