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

Side by Side Diff: src/bootstrapper.cc

Issue 263833007: Don't leak contexts in Object.observe (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: cr comments 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/contexts.h » ('j') | src/object-observe.js » ('J')
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 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 INSTALL_NATIVE(JSFunction, "GetStackTraceLine", get_stack_trace_line_fun); 1549 INSTALL_NATIVE(JSFunction, "GetStackTraceLine", get_stack_trace_line_fun);
1550 INSTALL_NATIVE(JSObject, "functionCache", function_cache); 1550 INSTALL_NATIVE(JSObject, "functionCache", function_cache);
1551 INSTALL_NATIVE(JSFunction, "ToCompletePropertyDescriptor", 1551 INSTALL_NATIVE(JSFunction, "ToCompletePropertyDescriptor",
1552 to_complete_property_descriptor); 1552 to_complete_property_descriptor);
1553 INSTALL_NATIVE(JSFunction, "NotifyChange", observers_notify_change); 1553 INSTALL_NATIVE(JSFunction, "NotifyChange", observers_notify_change);
1554 INSTALL_NATIVE(JSFunction, "EnqueueSpliceRecord", observers_enqueue_splice); 1554 INSTALL_NATIVE(JSFunction, "EnqueueSpliceRecord", observers_enqueue_splice);
1555 INSTALL_NATIVE(JSFunction, "BeginPerformSplice", 1555 INSTALL_NATIVE(JSFunction, "BeginPerformSplice",
1556 observers_begin_perform_splice); 1556 observers_begin_perform_splice);
1557 INSTALL_NATIVE(JSFunction, "EndPerformSplice", 1557 INSTALL_NATIVE(JSFunction, "EndPerformSplice",
1558 observers_end_perform_splice); 1558 observers_end_perform_splice);
1559 INSTALL_NATIVE(JSFunction, "NativeObjectObserve",
1560 native_object_observe);
1561 INSTALL_NATIVE(JSFunction, "NativeObjectGetNotifier",
1562 native_object_get_notifier);
1563 INSTALL_NATIVE(JSFunction, "NativeObjectNotifierPerformChange",
1564 native_object_notifier_perform_change);
1559 } 1565 }
1560 1566
1561 1567
1562 void Genesis::InstallExperimentalNativeFunctions() { 1568 void Genesis::InstallExperimentalNativeFunctions() {
1563 INSTALL_NATIVE(JSFunction, "RunMicrotasks", run_microtasks); 1569 INSTALL_NATIVE(JSFunction, "RunMicrotasks", run_microtasks);
1564 INSTALL_NATIVE(JSFunction, "EnqueueMicrotask", enqueue_microtask); 1570 INSTALL_NATIVE(JSFunction, "EnqueueMicrotask", enqueue_microtask);
1565 1571
1566 if (FLAG_harmony_promises) { 1572 if (FLAG_harmony_promises) {
1567 INSTALL_NATIVE(JSFunction, "IsPromise", is_promise); 1573 INSTALL_NATIVE(JSFunction, "IsPromise", is_promise);
1568 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create); 1574 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create);
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
2691 return from + sizeof(NestingCounterType); 2697 return from + sizeof(NestingCounterType);
2692 } 2698 }
2693 2699
2694 2700
2695 // Called when the top-level V8 mutex is destroyed. 2701 // Called when the top-level V8 mutex is destroyed.
2696 void Bootstrapper::FreeThreadResources() { 2702 void Bootstrapper::FreeThreadResources() {
2697 ASSERT(!IsActive()); 2703 ASSERT(!IsActive());
2698 } 2704 }
2699 2705
2700 } } // namespace v8::internal 2706 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/contexts.h » ('j') | src/object-observe.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698