| Index: src/js/harmony-simd.js
|
| diff --git a/src/js/harmony-simd.js b/src/js/harmony-simd.js
|
| index a5fe59b0c0cf8c94659e6c6109b09d0bf754c4ea..0880b5bdf1e27e65ddb33b5a956f6dcc98f706c0 100644
|
| --- a/src/js/harmony-simd.js
|
| +++ b/src/js/harmony-simd.js
|
| @@ -12,13 +12,8 @@
|
| // Imports
|
|
|
| var GlobalSIMD = global.SIMD;
|
| -var MakeTypeError;
|
| var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
|
|
|
| -utils.Import(function(from) {
|
| - MakeTypeError = from.MakeTypeError;
|
| -});
|
| -
|
| // -------------------------------------------------------------------
|
|
|
| macro SIMD_FLOAT_TYPES(FUNCTION)
|
| @@ -64,7 +59,7 @@ function NAMECheckJS(a) {
|
| function NAMEToString() {
|
| var value = %ValueOf(this);
|
| if (typeof(value) !== 'TYPE') {
|
| - throw MakeTypeError(kIncompatibleMethodReceiver,
|
| + throw %make_type_error(kIncompatibleMethodReceiver,
|
| "NAME.prototype.toString", this);
|
| }
|
| var str = "SIMD.NAME(";
|
| @@ -78,7 +73,7 @@ function NAMEToString() {
|
| function NAMEToLocaleString() {
|
| var value = %ValueOf(this);
|
| if (typeof(value) !== 'TYPE') {
|
| - throw MakeTypeError(kIncompatibleMethodReceiver,
|
| + throw %make_type_error(kIncompatibleMethodReceiver,
|
| "NAME.prototype.toLocaleString", this);
|
| }
|
| var str = "SIMD.NAME(";
|
| @@ -92,7 +87,7 @@ function NAMEToLocaleString() {
|
| function NAMEValueOf() {
|
| var value = %ValueOf(this);
|
| if (typeof(value) !== 'TYPE') {
|
| - throw MakeTypeError(kIncompatibleMethodReceiver,
|
| + throw %make_type_error(kIncompatibleMethodReceiver,
|
| "NAME.prototype.valueOf", this);
|
| }
|
| return value;
|
| @@ -434,7 +429,7 @@ SIMD_X16_TYPES(DECLARE_X16_FUNCTIONS)
|
|
|
| function Float32x4Constructor(c0, c1, c2, c3) {
|
| if (!IS_UNDEFINED(new.target)) {
|
| - throw MakeTypeError(kNotConstructor, "Float32x4");
|
| + throw %make_type_error(kNotConstructor, "Float32x4");
|
| }
|
| return %CreateFloat32x4(TO_NUMBER(c0), TO_NUMBER(c1),
|
| TO_NUMBER(c2), TO_NUMBER(c3));
|
| @@ -443,7 +438,7 @@ function Float32x4Constructor(c0, c1, c2, c3) {
|
|
|
| function Int32x4Constructor(c0, c1, c2, c3) {
|
| if (!IS_UNDEFINED(new.target)) {
|
| - throw MakeTypeError(kNotConstructor, "Int32x4");
|
| + throw %make_type_error(kNotConstructor, "Int32x4");
|
| }
|
| return %CreateInt32x4(TO_NUMBER(c0), TO_NUMBER(c1),
|
| TO_NUMBER(c2), TO_NUMBER(c3));
|
| @@ -452,7 +447,7 @@ function Int32x4Constructor(c0, c1, c2, c3) {
|
|
|
| function Uint32x4Constructor(c0, c1, c2, c3) {
|
| if (!IS_UNDEFINED(new.target)) {
|
| - throw MakeTypeError(kNotConstructor, "Uint32x4");
|
| + throw %make_type_error(kNotConstructor, "Uint32x4");
|
| }
|
| return %CreateUint32x4(TO_NUMBER(c0), TO_NUMBER(c1),
|
| TO_NUMBER(c2), TO_NUMBER(c3));
|
| @@ -461,7 +456,7 @@ function Uint32x4Constructor(c0, c1, c2, c3) {
|
|
|
| function Bool32x4Constructor(c0, c1, c2, c3) {
|
| if (!IS_UNDEFINED(new.target)) {
|
| - throw MakeTypeError(kNotConstructor, "Bool32x4");
|
| + throw %make_type_error(kNotConstructor, "Bool32x4");
|
| }
|
| return %CreateBool32x4(c0, c1, c2, c3);
|
| }
|
| @@ -469,7 +464,7 @@ function Bool32x4Constructor(c0, c1, c2, c3) {
|
|
|
| function Int16x8Constructor(c0, c1, c2, c3, c4, c5, c6, c7) {
|
| if (!IS_UNDEFINED(new.target)) {
|
| - throw MakeTypeError(kNotConstructor, "Int16x8");
|
| + throw %make_type_error(kNotConstructor, "Int16x8");
|
| }
|
| return %CreateInt16x8(TO_NUMBER(c0), TO_NUMBER(c1),
|
| TO_NUMBER(c2), TO_NUMBER(c3),
|
| @@ -480,7 +475,7 @@ function Int16x8Constructor(c0, c1, c2, c3, c4, c5, c6, c7) {
|
|
|
| function Uint16x8Constructor(c0, c1, c2, c3, c4, c5, c6, c7) {
|
| if (!IS_UNDEFINED(new.target)) {
|
| - throw MakeTypeError(kNotConstructor, "Uint16x8");
|
| + throw %make_type_error(kNotConstructor, "Uint16x8");
|
| }
|
| return %CreateUint16x8(TO_NUMBER(c0), TO_NUMBER(c1),
|
| TO_NUMBER(c2), TO_NUMBER(c3),
|
| @@ -491,7 +486,7 @@ function Uint16x8Constructor(c0, c1, c2, c3, c4, c5, c6, c7) {
|
|
|
| function Bool16x8Constructor(c0, c1, c2, c3, c4, c5, c6, c7) {
|
| if (!IS_UNDEFINED(new.target)) {
|
| - throw MakeTypeError(kNotConstructor, "Bool16x8");
|
| + throw %make_type_error(kNotConstructor, "Bool16x8");
|
| }
|
| return %CreateBool16x8(c0, c1, c2, c3, c4, c5, c6, c7);
|
| }
|
| @@ -500,7 +495,7 @@ function Bool16x8Constructor(c0, c1, c2, c3, c4, c5, c6, c7) {
|
| function Int8x16Constructor(c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| c12, c13, c14, c15) {
|
| if (!IS_UNDEFINED(new.target)) {
|
| - throw MakeTypeError(kNotConstructor, "Int8x16");
|
| + throw %make_type_error(kNotConstructor, "Int8x16");
|
| }
|
| return %CreateInt8x16(TO_NUMBER(c0), TO_NUMBER(c1),
|
| TO_NUMBER(c2), TO_NUMBER(c3),
|
| @@ -516,7 +511,7 @@ function Int8x16Constructor(c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| function Uint8x16Constructor(c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| c12, c13, c14, c15) {
|
| if (!IS_UNDEFINED(new.target)) {
|
| - throw MakeTypeError(kNotConstructor, "Uint8x16");
|
| + throw %make_type_error(kNotConstructor, "Uint8x16");
|
| }
|
| return %CreateUint8x16(TO_NUMBER(c0), TO_NUMBER(c1),
|
| TO_NUMBER(c2), TO_NUMBER(c3),
|
| @@ -532,7 +527,7 @@ function Uint8x16Constructor(c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| function Bool8x16Constructor(c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11,
|
| c12, c13, c14, c15) {
|
| if (!IS_UNDEFINED(new.target)) {
|
| - throw MakeTypeError(kNotConstructor, "Bool8x16");
|
| + throw %make_type_error(kNotConstructor, "Bool8x16");
|
| }
|
| return %CreateBool8x16(c0, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12,
|
| c13, c14, c15);
|
|
|