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

Side by Side Diff: src/bootstrapper.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, 8 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 | « no previous file | src/contexts.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 "bootstrapper.h" 5 #include "bootstrapper.h"
6 6
7 #include "accessors.h" 7 #include "accessors.h"
8 #include "isolate-inl.h" 8 #include "isolate-inl.h"
9 #include "natives.h" 9 #include "natives.h"
10 #include "snapshot.h" 10 #include "snapshot.h"
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 INSTALL_NATIVE(JSFunction, "EnqueueSpliceRecord", observers_enqueue_splice); 1545 INSTALL_NATIVE(JSFunction, "EnqueueSpliceRecord", observers_enqueue_splice);
1546 INSTALL_NATIVE(JSFunction, "BeginPerformSplice", 1546 INSTALL_NATIVE(JSFunction, "BeginPerformSplice",
1547 observers_begin_perform_splice); 1547 observers_begin_perform_splice);
1548 INSTALL_NATIVE(JSFunction, "EndPerformSplice", 1548 INSTALL_NATIVE(JSFunction, "EndPerformSplice",
1549 observers_end_perform_splice); 1549 observers_end_perform_splice);
1550 } 1550 }
1551 1551
1552 1552
1553 void Genesis::InstallExperimentalNativeFunctions() { 1553 void Genesis::InstallExperimentalNativeFunctions() {
1554 INSTALL_NATIVE(JSFunction, "RunMicrotasks", run_microtasks); 1554 INSTALL_NATIVE(JSFunction, "RunMicrotasks", run_microtasks);
1555 INSTALL_NATIVE(JSFunction, "EnqueueExternalMicrotask", 1555 INSTALL_NATIVE(JSFunction, "EnqueueMicrotask", enqueue_microtask);
1556 enqueue_external_microtask);
1557 1556
1558 if (FLAG_harmony_promises) { 1557 if (FLAG_harmony_promises) {
1559 INSTALL_NATIVE(JSFunction, "IsPromise", is_promise); 1558 INSTALL_NATIVE(JSFunction, "IsPromise", is_promise);
1560 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create); 1559 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create);
1561 INSTALL_NATIVE(JSFunction, "PromiseResolve", promise_resolve); 1560 INSTALL_NATIVE(JSFunction, "PromiseResolve", promise_resolve);
1562 INSTALL_NATIVE(JSFunction, "PromiseReject", promise_reject); 1561 INSTALL_NATIVE(JSFunction, "PromiseReject", promise_reject);
1563 INSTALL_NATIVE(JSFunction, "PromiseChain", promise_chain); 1562 INSTALL_NATIVE(JSFunction, "PromiseChain", promise_chain);
1564 INSTALL_NATIVE(JSFunction, "PromiseCatch", promise_catch); 1563 INSTALL_NATIVE(JSFunction, "PromiseCatch", promise_catch);
1565 } 1564 }
1566 1565
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2683 return from + sizeof(NestingCounterType); 2682 return from + sizeof(NestingCounterType);
2684 } 2683 }
2685 2684
2686 2685
2687 // Called when the top-level V8 mutex is destroyed. 2686 // Called when the top-level V8 mutex is destroyed.
2688 void Bootstrapper::FreeThreadResources() { 2687 void Bootstrapper::FreeThreadResources() {
2689 ASSERT(!IsActive()); 2688 ASSERT(!IsActive());
2690 } 2689 }
2691 2690
2692 } } // namespace v8::internal 2691 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698