| 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 "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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 isolate->factory()->undefined_value(), | 317 isolate->factory()->undefined_value(), |
| 318 0, | 318 0, |
| 319 NULL).Assert(); | 319 NULL).Assert(); |
| 320 } | 320 } |
| 321 | 321 |
| 322 | 322 |
| 323 void Execution::EnqueueMicrotask(Isolate* isolate, Handle<Object> microtask) { | 323 void Execution::EnqueueMicrotask(Isolate* isolate, Handle<Object> microtask) { |
| 324 Handle<Object> args[] = { microtask }; | 324 Handle<Object> args[] = { microtask }; |
| 325 Execution::Call( | 325 Execution::Call( |
| 326 isolate, | 326 isolate, |
| 327 isolate->enqueue_external_microtask(), | 327 isolate->enqueue_microtask(), |
| 328 isolate->factory()->undefined_value(), | 328 isolate->factory()->undefined_value(), |
| 329 1, | 329 1, |
| 330 args).Assert(); | 330 args).Assert(); |
| 331 } | 331 } |
| 332 | 332 |
| 333 | 333 |
| 334 bool StackGuard::IsStackOverflow() { | 334 bool StackGuard::IsStackOverflow() { |
| 335 ExecutionAccess access(isolate_); | 335 ExecutionAccess access(isolate_); |
| 336 return (thread_local_.jslimit_ != kInterruptLimit && | 336 return (thread_local_.jslimit_ != kInterruptLimit && |
| 337 thread_local_.climit_ != kInterruptLimit); | 337 thread_local_.climit_ != kInterruptLimit); |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 if (stack_guard->IsInstallCodeRequest()) { | 985 if (stack_guard->IsInstallCodeRequest()) { |
| 986 ASSERT(isolate->concurrent_recompilation_enabled()); | 986 ASSERT(isolate->concurrent_recompilation_enabled()); |
| 987 stack_guard->Continue(INSTALL_CODE); | 987 stack_guard->Continue(INSTALL_CODE); |
| 988 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); | 988 isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); |
| 989 } | 989 } |
| 990 isolate->runtime_profiler()->OptimizeNow(); | 990 isolate->runtime_profiler()->OptimizeNow(); |
| 991 return isolate->heap()->undefined_value(); | 991 return isolate->heap()->undefined_value(); |
| 992 } | 992 } |
| 993 | 993 |
| 994 } } // namespace v8::internal | 994 } } // namespace v8::internal |
| OLD | NEW |