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/isolate-inl.h" | 9 #include "src/isolate-inl.h" |
10 #include "src/messages.h" | 10 #include "src/messages.h" |
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 isolate_->optimizing_compile_dispatcher()->InstallOptimizedFunctions(); | 473 isolate_->optimizing_compile_dispatcher()->InstallOptimizedFunctions(); |
474 } | 474 } |
475 | 475 |
476 if (CheckAndClearInterrupt(API_INTERRUPT)) { | 476 if (CheckAndClearInterrupt(API_INTERRUPT)) { |
477 // Callbacks must be invoked outside of ExecusionAccess lock. | 477 // Callbacks must be invoked outside of ExecusionAccess lock. |
478 isolate_->InvokeApiInterruptCallbacks(); | 478 isolate_->InvokeApiInterruptCallbacks(); |
479 } | 479 } |
480 | 480 |
481 isolate_->counters()->stack_interrupts()->Increment(); | 481 isolate_->counters()->stack_interrupts()->Increment(); |
482 isolate_->counters()->runtime_profiler_ticks()->Increment(); | 482 isolate_->counters()->runtime_profiler_ticks()->Increment(); |
483 isolate_->runtime_profiler()->OptimizeNow(); | 483 isolate_->runtime_profiler()->MarkCandidatesForOptimization(); |
484 | 484 |
485 return isolate_->heap()->undefined_value(); | 485 return isolate_->heap()->undefined_value(); |
486 } | 486 } |
487 | 487 |
488 } // namespace internal | 488 } // namespace internal |
489 } // namespace v8 | 489 } // namespace v8 |
OLD | NEW |