Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(502)

Side by Side Diff: src/execution.cc

Issue 297303006: Some more debugger-related refactorings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/debug.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
660 if (should_postpone_interrupts(access)) { 660 if (should_postpone_interrupts(access)) {
661 return isolate_->heap()->undefined_value(); 661 return isolate_->heap()->undefined_value();
662 } 662 }
663 } 663 }
664 664
665 if (CheckAndClearInterrupt(GC_REQUEST)) { 665 if (CheckAndClearInterrupt(GC_REQUEST)) {
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)) { 673 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) {
674 return isolate_->TerminateExecution(); 674 return isolate_->TerminateExecution();
675 } 675 }
676 676
677 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { 677 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) {
678 isolate_->heap()->DeoptMarkedAllocationSites(); 678 isolate_->heap()->DeoptMarkedAllocationSites();
679 } 679 }
680 680
681 if (CheckAndClearInterrupt(INSTALL_CODE)) { 681 if (CheckAndClearInterrupt(INSTALL_CODE)) {
682 ASSERT(isolate_->concurrent_recompilation_enabled()); 682 ASSERT(isolate_->concurrent_recompilation_enabled());
683 isolate_->optimizing_compiler_thread()->InstallOptimizedFunctions(); 683 isolate_->optimizing_compiler_thread()->InstallOptimizedFunctions();
684 } 684 }
685 685
686 if (CheckAndClearInterrupt(API_INTERRUPT)) { 686 if (CheckAndClearInterrupt(API_INTERRUPT)) {
687 // Callback must be invoked outside of ExecusionAccess lock. 687 // Callback must be invoked outside of ExecusionAccess lock.
688 isolate_->InvokeApiInterruptCallback(); 688 isolate_->InvokeApiInterruptCallback();
689 } 689 }
690 690
691 isolate_->counters()->stack_interrupts()->Increment(); 691 isolate_->counters()->stack_interrupts()->Increment();
692 isolate_->counters()->runtime_profiler_ticks()->Increment(); 692 isolate_->counters()->runtime_profiler_ticks()->Increment();
693 isolate_->runtime_profiler()->OptimizeNow(); 693 isolate_->runtime_profiler()->OptimizeNow();
694 694
695 return isolate_->heap()->undefined_value(); 695 return isolate_->heap()->undefined_value();
696 } 696 }
697 697
698 } } // namespace v8::internal 698 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698