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

Side by Side Diff: src/execution.cc

Issue 2738503006: [inspector] don't make v8::debug::Call for breakProgram. (Closed)
Patch Set: addressed comments Created 3 years, 9 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
« no previous file with comments | « src/debug/debug-interface.h ('k') | src/inspector/v8-debugger.h » ('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 "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/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 if (FLAG_verify_predictable) { 464 if (FLAG_verify_predictable) {
465 // Advance synthetic time by making a time request. 465 // Advance synthetic time by making a time request.
466 isolate_->heap()->MonotonicallyIncreasingTimeInMs(); 466 isolate_->heap()->MonotonicallyIncreasingTimeInMs();
467 } 467 }
468 468
469 if (CheckAndClearInterrupt(GC_REQUEST)) { 469 if (CheckAndClearInterrupt(GC_REQUEST)) {
470 isolate_->heap()->HandleGCRequest(); 470 isolate_->heap()->HandleGCRequest();
471 } 471 }
472 472
473 if (CheckDebugBreak()) { 473 if (CheckDebugBreak()) {
474 isolate_->debug()->HandleDebugBreak(); 474 isolate_->debug()->HandleDebugBreak(kIgnoreIfTopFrameBlackboxed);
475 } 475 }
476 476
477 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { 477 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) {
478 return isolate_->TerminateExecution(); 478 return isolate_->TerminateExecution();
479 } 479 }
480 480
481 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) { 481 if (CheckAndClearInterrupt(DEOPT_MARKED_ALLOCATION_SITES)) {
482 isolate_->heap()->DeoptMarkedAllocationSites(); 482 isolate_->heap()->DeoptMarkedAllocationSites();
483 } 483 }
484 484
485 if (CheckAndClearInterrupt(INSTALL_CODE)) { 485 if (CheckAndClearInterrupt(INSTALL_CODE)) {
486 DCHECK(isolate_->concurrent_recompilation_enabled()); 486 DCHECK(isolate_->concurrent_recompilation_enabled());
487 isolate_->optimizing_compile_dispatcher()->InstallOptimizedFunctions(); 487 isolate_->optimizing_compile_dispatcher()->InstallOptimizedFunctions();
488 } 488 }
489 489
490 if (CheckAndClearInterrupt(API_INTERRUPT)) { 490 if (CheckAndClearInterrupt(API_INTERRUPT)) {
491 // Callbacks must be invoked outside of ExecusionAccess lock. 491 // Callbacks must be invoked outside of ExecusionAccess lock.
492 isolate_->InvokeApiInterruptCallbacks(); 492 isolate_->InvokeApiInterruptCallbacks();
493 } 493 }
494 494
495 isolate_->counters()->stack_interrupts()->Increment(); 495 isolate_->counters()->stack_interrupts()->Increment();
496 isolate_->counters()->runtime_profiler_ticks()->Increment(); 496 isolate_->counters()->runtime_profiler_ticks()->Increment();
497 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); 497 isolate_->runtime_profiler()->MarkCandidatesForOptimization();
498 498
499 return isolate_->heap()->undefined_value(); 499 return isolate_->heap()->undefined_value();
500 } 500 }
501 501
502 } // namespace internal 502 } // namespace internal
503 } // namespace v8 503 } // namespace v8
OLDNEW
« no previous file with comments | « src/debug/debug-interface.h ('k') | src/inspector/v8-debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698