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

Side by Side Diff: src/bootstrapper.cc

Issue 1086813005: Wrap object observe implementation in a function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « src/array.js ('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 "src/bootstrapper.h" 5 #include "src/bootstrapper.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/extensions/externalize-string-extension.h" 10 #include "src/extensions/externalize-string-extension.h"
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 to_complete_property_descriptor); 1558 to_complete_property_descriptor);
1559 1559
1560 INSTALL_NATIVE(Symbol, "promiseStatus", promise_status); 1560 INSTALL_NATIVE(Symbol, "promiseStatus", promise_status);
1561 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create); 1561 INSTALL_NATIVE(JSFunction, "PromiseCreate", promise_create);
1562 INSTALL_NATIVE(JSFunction, "PromiseResolve", promise_resolve); 1562 INSTALL_NATIVE(JSFunction, "PromiseResolve", promise_resolve);
1563 INSTALL_NATIVE(JSFunction, "PromiseReject", promise_reject); 1563 INSTALL_NATIVE(JSFunction, "PromiseReject", promise_reject);
1564 INSTALL_NATIVE(JSFunction, "PromiseChain", promise_chain); 1564 INSTALL_NATIVE(JSFunction, "PromiseChain", promise_chain);
1565 INSTALL_NATIVE(JSFunction, "PromiseCatch", promise_catch); 1565 INSTALL_NATIVE(JSFunction, "PromiseCatch", promise_catch);
1566 INSTALL_NATIVE(JSFunction, "PromiseThen", promise_then); 1566 INSTALL_NATIVE(JSFunction, "PromiseThen", promise_then);
1567 1567
1568 INSTALL_NATIVE(JSFunction, "NotifyChange", observers_notify_change); 1568 INSTALL_NATIVE(JSFunction, "$observeNotifyChange", observers_notify_change);
1569 INSTALL_NATIVE(JSFunction, "EnqueueSpliceRecord", observers_enqueue_splice); 1569 INSTALL_NATIVE(JSFunction, "$observeEnqueueSpliceRecord",
1570 INSTALL_NATIVE(JSFunction, "BeginPerformSplice", 1570 observers_enqueue_splice);
1571 INSTALL_NATIVE(JSFunction, "$observeBeginPerformSplice",
1571 observers_begin_perform_splice); 1572 observers_begin_perform_splice);
1572 INSTALL_NATIVE(JSFunction, "EndPerformSplice", 1573 INSTALL_NATIVE(JSFunction, "$observeEndPerformSplice",
1573 observers_end_perform_splice); 1574 observers_end_perform_splice);
1574 INSTALL_NATIVE(JSFunction, "NativeObjectObserve", 1575 INSTALL_NATIVE(JSFunction, "$observeNativeObjectObserve",
1575 native_object_observe); 1576 native_object_observe);
1576 INSTALL_NATIVE(JSFunction, "NativeObjectGetNotifier", 1577 INSTALL_NATIVE(JSFunction, "$observeNativeObjectGetNotifier",
1577 native_object_get_notifier); 1578 native_object_get_notifier);
1578 INSTALL_NATIVE(JSFunction, "NativeObjectNotifierPerformChange", 1579 INSTALL_NATIVE(JSFunction, "$observeNativeObjectNotifierPerformChange",
1579 native_object_notifier_perform_change); 1580 native_object_notifier_perform_change);
1580 INSTALL_NATIVE(JSFunction, "$arrayValues", array_values_iterator); 1581 INSTALL_NATIVE(JSFunction, "$arrayValues", array_values_iterator);
1581 } 1582 }
1582 1583
1583 1584
1584 void Genesis::InstallExperimentalNativeFunctions() { 1585 void Genesis::InstallExperimentalNativeFunctions() {
1585 if (FLAG_harmony_proxies) { 1586 if (FLAG_harmony_proxies) {
1586 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap); 1587 INSTALL_NATIVE(JSFunction, "$proxyDerivedHasTrap", derived_has_trap);
1587 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap); 1588 INSTALL_NATIVE(JSFunction, "$proxyDerivedGetTrap", derived_get_trap);
1588 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap); 1589 INSTALL_NATIVE(JSFunction, "$proxyDerivedSetTrap", derived_set_trap);
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after
2959 return from + sizeof(NestingCounterType); 2960 return from + sizeof(NestingCounterType);
2960 } 2961 }
2961 2962
2962 2963
2963 // Called when the top-level V8 mutex is destroyed. 2964 // Called when the top-level V8 mutex is destroyed.
2964 void Bootstrapper::FreeThreadResources() { 2965 void Bootstrapper::FreeThreadResources() {
2965 DCHECK(!IsActive()); 2966 DCHECK(!IsActive());
2966 } 2967 }
2967 2968
2968 } } // namespace v8::internal 2969 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/array.js ('k') | src/object-observe.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698