OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 var $observeEnqueueSpliceRecord; | 5 var $observeEnqueueSpliceRecord; |
6 var $observeBeginPerformSplice; | 6 var $observeBeginPerformSplice; |
7 var $observeEndPerformSplice; | 7 var $observeEndPerformSplice; |
8 | 8 |
9 var $observeObjectMethods; | 9 var $observeObjectMethods; |
10 var $observeArrayMethods; | 10 var $observeArrayMethods; |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 if (i % 2 === 1) %FunctionRemovePrototype(f); | 697 if (i % 2 === 1) %FunctionRemovePrototype(f); |
698 }; | 698 }; |
699 $observeObjectMethods.forEach(removePrototypeFn); | 699 $observeObjectMethods.forEach(removePrototypeFn); |
700 $observeArrayMethods.forEach(removePrototypeFn); | 700 $observeArrayMethods.forEach(removePrototypeFn); |
701 | 701 |
702 $observeEnqueueSpliceRecord = EnqueueSpliceRecord; | 702 $observeEnqueueSpliceRecord = EnqueueSpliceRecord; |
703 $observeBeginPerformSplice = BeginPerformSplice; | 703 $observeBeginPerformSplice = BeginPerformSplice; |
704 $observeEndPerformSplice = EndPerformSplice; | 704 $observeEndPerformSplice = EndPerformSplice; |
705 | 705 |
706 utils.ExportToRuntime(function(to) { | 706 utils.ExportToRuntime(function(to) { |
707 to.ObserveNotifyChange = NotifyChange; | 707 to["native_object_get_notifier"] = NativeObjectGetNotifier; |
708 to.ObserveEnqueueSpliceRecord = EnqueueSpliceRecord; | 708 to["native_object_notifier_perform_change"] = |
709 to.ObserveBeginPerformSplice = BeginPerformSplice; | |
710 to.ObserveEndPerformSplice = EndPerformSplice; | |
711 to.ObserveNativeObjectObserve = NativeObjectObserve; | |
712 to.ObserveNativeObjectGetNotifier = NativeObjectGetNotifier; | |
713 to.ObserveNativeObjectNotifierPerformChange = | |
714 NativeObjectNotifierPerformChange; | 709 NativeObjectNotifierPerformChange; |
| 710 to["native_object_observe"] = NativeObjectObserve; |
| 711 to["observers_begin_perform_splice"] = BeginPerformSplice; |
| 712 to["observers_end_perform_splice"] = EndPerformSplice; |
| 713 to["observers_enqueue_splice"] = EnqueueSpliceRecord; |
| 714 to["observers_notify_change"] = NotifyChange; |
715 }); | 715 }); |
716 | 716 |
717 }) | 717 }) |
OLD | NEW |