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

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

Issue 1378533002: [es6] Introduce %ToInteger and %ToLength. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/macros.py ('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 $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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 323 }
324 324
325 325
326 function ConvertAcceptListToTypeMap(arg) { 326 function ConvertAcceptListToTypeMap(arg) {
327 // We use undefined as a sentinel for the default accept list. 327 // We use undefined as a sentinel for the default accept list.
328 if (IS_UNDEFINED(arg)) 328 if (IS_UNDEFINED(arg))
329 return arg; 329 return arg;
330 330
331 if (!IS_SPEC_OBJECT(arg)) throw MakeTypeError(kObserveInvalidAccept); 331 if (!IS_SPEC_OBJECT(arg)) throw MakeTypeError(kObserveInvalidAccept);
332 332
333 var len = $toInteger(arg.length); 333 var len = TO_INTEGER(arg.length);
334 if (len < 0) len = 0; 334 if (len < 0) len = 0;
335 335
336 return TypeMapCreateFromList(arg, len); 336 return TypeMapCreateFromList(arg, len);
337 } 337 }
338 338
339 339
340 // CallbackInfo's optimized state is just a number which represents its global 340 // CallbackInfo's optimized state is just a number which represents its global
341 // priority. When a change record must be enqueued for the callback, it 341 // priority. When a change record must be enqueued for the callback, it
342 // normalizes. When delivery clears any pending change records, it re-optimizes. 342 // normalizes. When delivery clears any pending change records, it re-optimizes.
343 function CallbackInfoGet(callback) { 343 function CallbackInfoGet(callback) {
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 "native_object_get_notifier", NativeObjectGetNotifier, 711 "native_object_get_notifier", NativeObjectGetNotifier,
712 "native_object_notifier_perform_change", NativeObjectNotifierPerformChange, 712 "native_object_notifier_perform_change", NativeObjectNotifierPerformChange,
713 "native_object_observe", NativeObjectObserve, 713 "native_object_observe", NativeObjectObserve,
714 "observers_begin_perform_splice", BeginPerformSplice, 714 "observers_begin_perform_splice", BeginPerformSplice,
715 "observers_end_perform_splice", EndPerformSplice, 715 "observers_end_perform_splice", EndPerformSplice,
716 "observers_enqueue_splice", EnqueueSpliceRecord, 716 "observers_enqueue_splice", EnqueueSpliceRecord,
717 "observers_notify_change", NotifyChange, 717 "observers_notify_change", NotifyChange,
718 ]); 718 ]);
719 719
720 }) 720 })
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698