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 $observeNotifyChange; | 5 var $observeNotifyChange; |
6 var $observeEnqueueSpliceRecord; | 6 var $observeEnqueueSpliceRecord; |
7 var $observeBeginPerformSplice; | 7 var $observeBeginPerformSplice; |
8 var $observeEndPerformSplice; | 8 var $observeEndPerformSplice; |
9 var $observeNativeObjectObserve; | 9 var $observeNativeObjectObserve; |
10 var $observeNativeObjectGetNotifier; | 10 var $observeNativeObjectGetNotifier; |
11 var $observeNativeObjectNotifierPerformChange; | 11 var $observeNativeObjectNotifierPerformChange; |
12 | 12 |
13 (function(global, utils) { | 13 (function(global, shared, exports) { |
14 | 14 |
15 "use strict"; | 15 "use strict"; |
16 | 16 |
17 %CheckIsBootstrapping(); | 17 %CheckIsBootstrapping(); |
18 | 18 |
19 // ------------------------------------------------------------------- | 19 // ------------------------------------------------------------------- |
20 // Imports | 20 // Imports |
21 | 21 |
22 var GlobalArray = global.Array; | 22 var GlobalArray = global.Array; |
23 var GlobalObject = global.Object; | 23 var GlobalObject = global.Object; |
24 var InternalArray = utils.InternalArray; | 24 var InternalArray = shared.InternalArray; |
25 | 25 |
26 // ------------------------------------------------------------------- | 26 // ------------------------------------------------------------------- |
27 | 27 |
28 // Overview: | 28 // Overview: |
29 // | 29 // |
30 // This file contains all of the routing and accounting for Object.observe. | 30 // This file contains all of the routing and accounting for Object.observe. |
31 // User code will interact with these mechanisms via the Object.observe APIs | 31 // User code will interact with these mechanisms via the Object.observe APIs |
32 // and, as a side effect of mutation objects which are observed. The V8 runtime | 32 // and, as a side effect of mutation objects which are observed. The V8 runtime |
33 // (both C++ and JS) will interact with these mechanisms primarily by enqueuing | 33 // (both C++ and JS) will interact with these mechanisms primarily by enqueuing |
34 // proper change records for objects which were mutated. The Object.observe | 34 // proper change records for objects which were mutated. The Object.observe |
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 | 682 |
683 $observeNotifyChange = NotifyChange; | 683 $observeNotifyChange = NotifyChange; |
684 $observeEnqueueSpliceRecord = EnqueueSpliceRecord; | 684 $observeEnqueueSpliceRecord = EnqueueSpliceRecord; |
685 $observeBeginPerformSplice = BeginPerformSplice; | 685 $observeBeginPerformSplice = BeginPerformSplice; |
686 $observeEndPerformSplice = EndPerformSplice; | 686 $observeEndPerformSplice = EndPerformSplice; |
687 $observeNativeObjectObserve = NativeObjectObserve; | 687 $observeNativeObjectObserve = NativeObjectObserve; |
688 $observeNativeObjectGetNotifier = NativeObjectGetNotifier; | 688 $observeNativeObjectGetNotifier = NativeObjectGetNotifier; |
689 $observeNativeObjectNotifierPerformChange = NativeObjectNotifierPerformChange; | 689 $observeNativeObjectNotifierPerformChange = NativeObjectNotifierPerformChange; |
690 | 690 |
691 }) | 691 }) |
OLD | NEW |