summaryrefslogtreecommitdiff
path: root/deps/v8/src/js/typedarray.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/js/typedarray.js')
-rw-r--r--deps/v8/src/js/typedarray.js27
1 files changed, 0 insertions, 27 deletions
diff --git a/deps/v8/src/js/typedarray.js b/deps/v8/src/js/typedarray.js
index 18998cf9be..c398766431 100644
--- a/deps/v8/src/js/typedarray.js
+++ b/deps/v8/src/js/typedarray.js
@@ -13,13 +13,9 @@
// array.js has to come before typedarray.js for this to work
var ArrayToString = utils.ImportNow("ArrayToString");
-var GetIterator;
-var GetMethod;
var InnerArrayJoin;
var InnerArraySort;
var InnerArrayToLocaleString;
-var InternalArray = utils.InternalArray;
-var iteratorSymbol = utils.ImportNow("iterator_symbol");
macro TYPED_ARRAYS(FUNCTION)
FUNCTION(Uint8Array, 1)
@@ -48,8 +44,6 @@ endmacro
var GlobalTypedArray = %object_get_prototype_of(GlobalUint8Array);
utils.Import(function(from) {
- GetIterator = from.GetIterator;
- GetMethod = from.GetMethod;
InnerArrayJoin = from.InnerArrayJoin;
InnerArraySort = from.InnerArraySort;
InnerArrayToLocaleString = from.InnerArrayToLocaleString;
@@ -65,19 +59,6 @@ function ValidateTypedArray(array, methodName) {
throw %make_type_error(kDetachedOperation, methodName);
}
-function TypedArrayCreate(constructor, arg0, arg1, arg2) {
- if (IS_UNDEFINED(arg1)) {
- var newTypedArray = new constructor(arg0);
- } else {
- var newTypedArray = new constructor(arg0, arg1, arg2);
- }
- ValidateTypedArray(newTypedArray, "TypedArrayCreate");
- if (IS_NUMBER(arg0) && %_TypedArrayGetLength(newTypedArray) < arg0) {
- throw %make_type_error(kTypedArrayTooShort);
- }
- return newTypedArray;
-}
-
// ES6 draft 05-18-15, section 22.2.3.25
DEFINE_METHOD(
GlobalTypedArray.prototype,
@@ -124,16 +105,8 @@ DEFINE_METHOD(
}
);
-// TODO(bmeurer): Migrate this to a proper builtin.
-function TypedArrayConstructor() {
- throw %make_type_error(kConstructAbstractClass, "TypedArray");
-}
-
// -------------------------------------------------------------------
-%SetCode(GlobalTypedArray, TypedArrayConstructor);
-
-
%AddNamedProperty(GlobalTypedArray.prototype, "toString", ArrayToString,
DONT_ENUM);