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/messages.h" | 10 #include "src/messages.h" |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 isolate->factory()->undefined_value(), arraysize(args), args); | 619 isolate->factory()->undefined_value(), arraysize(args), args); |
620 Handle<Object> result; | 620 Handle<Object> result; |
621 if (!maybe_result.ToHandle(&result) || !result->IsString()) { | 621 if (!maybe_result.ToHandle(&result) || !result->IsString()) { |
622 return isolate->factory()->empty_string(); | 622 return isolate->factory()->empty_string(); |
623 } | 623 } |
624 | 624 |
625 return Handle<String>::cast(result); | 625 return Handle<String>::cast(result); |
626 } | 626 } |
627 | 627 |
628 | 628 |
629 void StackGuard::CheckAndHandleGCInterrupt() { | 629 void StackGuard::HandleGCInterrupt() { |
630 if (CheckAndClearInterrupt(GC_REQUEST)) { | 630 if (CheckAndClearInterrupt(GC_REQUEST)) { |
631 isolate_->heap()->HandleGCRequest(); | 631 isolate_->heap()->HandleGCRequest(); |
632 } | 632 } |
633 } | 633 } |
634 | 634 |
635 | 635 |
636 Object* StackGuard::HandleInterrupts() { | 636 Object* StackGuard::HandleInterrupts() { |
637 if (CheckAndClearInterrupt(GC_REQUEST)) { | 637 if (CheckAndClearInterrupt(GC_REQUEST)) { |
638 isolate_->heap()->HandleGCRequest(); | 638 isolate_->heap()->HandleGCRequest(); |
639 } | 639 } |
(...skipping 22 matching lines...) Expand all Loading... |
662 | 662 |
663 isolate_->counters()->stack_interrupts()->Increment(); | 663 isolate_->counters()->stack_interrupts()->Increment(); |
664 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 664 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
665 isolate_->runtime_profiler()->OptimizeNow(); | 665 isolate_->runtime_profiler()->OptimizeNow(); |
666 | 666 |
667 return isolate_->heap()->undefined_value(); | 667 return isolate_->heap()->undefined_value(); |
668 } | 668 } |
669 | 669 |
670 } // namespace internal | 670 } // namespace internal |
671 } // namespace v8 | 671 } // namespace v8 |
OLD | NEW |