| 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 (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 Loading... |
| 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 Loading... |
| 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 }) |
| OLD | NEW |