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

Side by Side Diff: src/typedarray.js

Issue 1183213002: Inline code generation for %_IsTypedArray (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fullcodegen on all platforms; turbofan typer Created 5 years, 6 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 } 305 }
306 if (intOffset + l > this.length) { 306 if (intOffset + l > this.length) {
307 throw MakeRangeError(kTypedArraySetSourceTooLarge); 307 throw MakeRangeError(kTypedArraySetSourceTooLarge);
308 } 308 }
309 TypedArraySetFromArrayLike(this, obj, l, intOffset); 309 TypedArraySetFromArrayLike(this, obj, l, intOffset);
310 return; 310 return;
311 } 311 }
312 } 312 }
313 313
314 function TypedArrayGetToStringTag() { 314 function TypedArrayGetToStringTag() {
315 if (!%IsTypedArray(this)) return; 315 if (!%_IsTypedArray(this)) return;
316 var name = %_ClassOf(this); 316 var name = %_ClassOf(this);
317 if (IS_UNDEFINED(name)) return; 317 if (IS_UNDEFINED(name)) return;
318 return name; 318 return name;
319 } 319 }
320 320
321 // ------------------------------------------------------------------- 321 // -------------------------------------------------------------------
322 322
323 macro SETUP_TYPED_ARRAY(ARRAY_ID, NAME, ELEMENT_SIZE) 323 macro SETUP_TYPED_ARRAY(ARRAY_ID, NAME, ELEMENT_SIZE)
324 %SetCode(GlobalNAME, NAMEConstructor); 324 %SetCode(GlobalNAME, NAMEConstructor);
325 %FunctionSetPrototype(GlobalNAME, new GlobalObject()); 325 %FunctionSetPrototype(GlobalNAME, new GlobalObject());
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 "setUint32", DataViewSetUint32JS, 473 "setUint32", DataViewSetUint32JS,
474 474
475 "getFloat32", DataViewGetFloat32JS, 475 "getFloat32", DataViewGetFloat32JS,
476 "setFloat32", DataViewSetFloat32JS, 476 "setFloat32", DataViewSetFloat32JS,
477 477
478 "getFloat64", DataViewGetFloat64JS, 478 "getFloat64", DataViewGetFloat64JS,
479 "setFloat64", DataViewSetFloat64JS 479 "setFloat64", DataViewSetFloat64JS
480 ]); 480 ]);
481 481
482 }) 482 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698