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

Side by Side Diff: src/execution.cc

Issue 1415383004: Fixing --verify-predictable mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed shared build Created 5 years, 1 month 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/d8.cc ('k') | src/flag-definitions.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/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/isolate-inl.h" 10 #include "src/isolate-inl.h"
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 490
491 491
492 void StackGuard::HandleGCInterrupt() { 492 void StackGuard::HandleGCInterrupt() {
493 if (CheckAndClearInterrupt(GC_REQUEST)) { 493 if (CheckAndClearInterrupt(GC_REQUEST)) {
494 isolate_->heap()->HandleGCRequest(); 494 isolate_->heap()->HandleGCRequest();
495 } 495 }
496 } 496 }
497 497
498 498
499 Object* StackGuard::HandleInterrupts() { 499 Object* StackGuard::HandleInterrupts() {
500 if (FLAG_verify_predictable) {
501 // Advance synthetic time by making a time request.
502 isolate_->heap()->MonotonicallyIncreasingTimeInMs();
503 }
504
500 if (CheckAndClearInterrupt(GC_REQUEST)) { 505 if (CheckAndClearInterrupt(GC_REQUEST)) {
501 isolate_->heap()->HandleGCRequest(); 506 isolate_->heap()->HandleGCRequest();
502 } 507 }
503 508
504 if (CheckDebugBreak() || CheckDebugCommand()) { 509 if (CheckDebugBreak() || CheckDebugCommand()) {
505 isolate_->debug()->HandleDebugBreak(); 510 isolate_->debug()->HandleDebugBreak();
506 } 511 }
507 512
508 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) { 513 if (CheckAndClearInterrupt(TERMINATE_EXECUTION)) {
509 return isolate_->TerminateExecution(); 514 return isolate_->TerminateExecution();
(...skipping 15 matching lines...) Expand all
525 530
526 isolate_->counters()->stack_interrupts()->Increment(); 531 isolate_->counters()->stack_interrupts()->Increment();
527 isolate_->counters()->runtime_profiler_ticks()->Increment(); 532 isolate_->counters()->runtime_profiler_ticks()->Increment();
528 isolate_->runtime_profiler()->OptimizeNow(); 533 isolate_->runtime_profiler()->OptimizeNow();
529 534
530 return isolate_->heap()->undefined_value(); 535 return isolate_->heap()->undefined_value();
531 } 536 }
532 537
533 } // namespace internal 538 } // namespace internal
534 } // namespace v8 539 } // namespace v8
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698