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

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

Issue 1543803002: Revert of [proxies] Better print for proxies in d8 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 12 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/js/messages.js ('k') | src/js/proxy.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 (function(global, utils) { 5 (function(global, utils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 function ObserverIsActive(observer, objectInfo) { 186 function ObserverIsActive(observer, objectInfo) {
187 return TypeMapIsDisjointFrom(ObjectInfoGetPerformingTypes(objectInfo), 187 return TypeMapIsDisjointFrom(ObjectInfoGetPerformingTypes(objectInfo),
188 ObserverGetAcceptTypes(observer)); 188 ObserverGetAcceptTypes(observer));
189 } 189 }
190 190
191 191
192 function ObjectInfoGetOrCreate(object) { 192 function ObjectInfoGetOrCreate(object) {
193 var objectInfo = ObjectInfoGet(object); 193 var objectInfo = ObjectInfoGet(object);
194 if (IS_UNDEFINED(objectInfo)) { 194 if (IS_UNDEFINED(objectInfo)) {
195 if (!IS_PROXY(object)) { 195 if (!%_IsJSProxy(object)) {
196 %SetIsObserved(object); 196 %SetIsObserved(object);
197 } 197 }
198 objectInfo = { 198 objectInfo = {
199 object: object, 199 object: object,
200 changeObservers: null, 200 changeObservers: null,
201 notifier: null, 201 notifier: null,
202 performing: null, 202 performing: null,
203 performingCount: 0, 203 performingCount: 0,
204 }; 204 };
205 %WeakCollectionSet(GetObservationStateJS().objectInfoMap, 205 %WeakCollectionSet(GetObservationStateJS().objectInfoMap,
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 712
713 utils.Export(function(to) { 713 utils.Export(function(to) {
714 to.ObserveArrayMethods = ObserveArrayMethods; 714 to.ObserveArrayMethods = ObserveArrayMethods;
715 to.ObserveBeginPerformSplice = BeginPerformSplice; 715 to.ObserveBeginPerformSplice = BeginPerformSplice;
716 to.ObserveEndPerformSplice = EndPerformSplice; 716 to.ObserveEndPerformSplice = EndPerformSplice;
717 to.ObserveEnqueueSpliceRecord = EnqueueSpliceRecord; 717 to.ObserveEnqueueSpliceRecord = EnqueueSpliceRecord;
718 to.ObserveObjectMethods = ObserveObjectMethods; 718 to.ObserveObjectMethods = ObserveObjectMethods;
719 }); 719 });
720 720
721 }) 721 })
OLDNEW
« no previous file with comments | « src/js/messages.js ('k') | src/js/proxy.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698