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

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

Issue 1126213002: Wrap runtime.js in a function. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 7 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/mirror-debugger.js ('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 $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
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
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 })();
OLDNEW
« no previous file with comments | « src/mirror-debugger.js ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698