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

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

Issue 1307963002: Native context: alpha sort slots and remove boilerplate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rename Created 5 years, 4 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/promise.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 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
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 })
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698