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