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

Side by Side Diff: src/execution.cc

Issue 250883002: Fix |RunMicrotasks()| leaking reference to the last context being run on. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: remove external_ Created 6 years, 7 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/contexts.h ('k') | src/object-observe.js » ('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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/object-observe.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698