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; |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
310 } | 310 } |
311 | 311 |
312 | 312 |
313 function ConvertAcceptListToTypeMap(arg) { | 313 function ConvertAcceptListToTypeMap(arg) { |
314 // We use undefined as a sentinel for the default accept list. | 314 // We use undefined as a sentinel for the default accept list. |
315 if (IS_UNDEFINED(arg)) | 315 if (IS_UNDEFINED(arg)) |
316 return arg; | 316 return arg; |
317 | 317 |
318 if (!IS_SPEC_OBJECT(arg)) throw MakeTypeError(kObserveInvalidAccept); | 318 if (!IS_SPEC_OBJECT(arg)) throw MakeTypeError(kObserveInvalidAccept); |
319 | 319 |
320 var len = ToInteger(arg.length); | 320 var len = $toInteger(arg.length); |
321 if (len < 0) len = 0; | 321 if (len < 0) len = 0; |
322 | 322 |
323 return TypeMapCreateFromList(arg, len); | 323 return TypeMapCreateFromList(arg, len); |
324 } | 324 } |
325 | 325 |
326 | 326 |
327 // CallbackInfo's optimized state is just a number which represents its global | 327 // CallbackInfo's optimized state is just a number which represents its global |
328 // priority. When a change record must be enqueued for the callback, it | 328 // priority. When a change record must be enqueued for the callback, it |
329 // normalizes. When delivery clears any pending change records, it re-optimizes. | 329 // normalizes. When delivery clears any pending change records, it re-optimizes. |
330 function CallbackInfoGet(callback) { | 330 function CallbackInfoGet(callback) { |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
678 | 678 |
679 $observeNotifyChange = NotifyChange; | 679 $observeNotifyChange = NotifyChange; |
680 $observeEnqueueSpliceRecord = EnqueueSpliceRecord; | 680 $observeEnqueueSpliceRecord = EnqueueSpliceRecord; |
681 $observeBeginPerformSplice = BeginPerformSplice; | 681 $observeBeginPerformSplice = BeginPerformSplice; |
682 $observeEndPerformSplice = EndPerformSplice; | 682 $observeEndPerformSplice = EndPerformSplice; |
683 $observeNativeObjectObserve = NativeObjectObserve; | 683 $observeNativeObjectObserve = NativeObjectObserve; |
684 $observeNativeObjectGetNotifier = NativeObjectGetNotifier; | 684 $observeNativeObjectGetNotifier = NativeObjectGetNotifier; |
685 $observeNativeObjectNotifierPerformChange = NativeObjectNotifierPerformChange; | 685 $observeNativeObjectNotifierPerformChange = NativeObjectNotifierPerformChange; |
686 | 686 |
687 })(); | 687 })(); |
OLD | NEW |