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

Side by Side Diff: src/object-observe.js

Issue 1127983003: Use function wrapper argument to expose internal arrays to native scripts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased and fixed nits Created 5 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
« no previous file with comments | « src/messages.js ('k') | src/objects.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 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, shared, exports) { 13 (function(global, shared, exports) {
14 14
15 "use strict"; 15 "use strict";
16 16
17 %CheckIsBootstrapping(); 17 %CheckIsBootstrapping();
18 18
19 // -------------------------------------------------------------------
20 // Imports
21
19 var GlobalArray = global.Array; 22 var GlobalArray = global.Array;
20 var GlobalObject = global.Object; 23 var GlobalObject = global.Object;
24 var InternalArray = shared.InternalArray;
21 25
22 // ------------------------------------------------------------------- 26 // -------------------------------------------------------------------
23 27
24 // Overview: 28 // Overview:
25 // 29 //
26 // 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.
27 // 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
28 // 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
29 // (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
30 // 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
678 682
679 $observeNotifyChange = NotifyChange; 683 $observeNotifyChange = NotifyChange;
680 $observeEnqueueSpliceRecord = EnqueueSpliceRecord; 684 $observeEnqueueSpliceRecord = EnqueueSpliceRecord;
681 $observeBeginPerformSplice = BeginPerformSplice; 685 $observeBeginPerformSplice = BeginPerformSplice;
682 $observeEndPerformSplice = EndPerformSplice; 686 $observeEndPerformSplice = EndPerformSplice;
683 $observeNativeObjectObserve = NativeObjectObserve; 687 $observeNativeObjectObserve = NativeObjectObserve;
684 $observeNativeObjectGetNotifier = NativeObjectGetNotifier; 688 $observeNativeObjectGetNotifier = NativeObjectGetNotifier;
685 $observeNativeObjectNotifierPerformChange = NativeObjectNotifierPerformChange; 689 $observeNativeObjectNotifierPerformChange = NativeObjectNotifierPerformChange;
686 690
687 }) 691 })
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698