OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 |
11 // ------------------------------------------------------------------- | 11 // ------------------------------------------------------------------- |
12 // Imports | 12 // Imports |
13 | 13 |
14 var GlobalSIMD = global.SIMD; | 14 var GlobalSIMD = global.SIMD; |
| 15 var MakeTypeError; |
15 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); | 16 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); |
16 | 17 |
| 18 utils.Import(function(from) { |
| 19 MakeTypeError = from.MakeTypeError; |
| 20 }); |
| 21 |
| 22 // ------------------------------------------------------------------- |
| 23 |
17 macro SIMD_FLOAT_TYPES(FUNCTION) | 24 macro SIMD_FLOAT_TYPES(FUNCTION) |
18 FUNCTION(Float32x4, float32x4, 4) | 25 FUNCTION(Float32x4, float32x4, 4) |
19 endmacro | 26 endmacro |
20 | 27 |
21 macro SIMD_INT_TYPES(FUNCTION) | 28 macro SIMD_INT_TYPES(FUNCTION) |
22 FUNCTION(Int32x4, int32x4, 4) | 29 FUNCTION(Int32x4, int32x4, 4) |
23 FUNCTION(Int16x8, int16x8, 8) | 30 FUNCTION(Int16x8, int16x8, 8) |
24 FUNCTION(Int8x16, int8x16, 16) | 31 FUNCTION(Int8x16, int8x16, 16) |
25 endmacro | 32 endmacro |
26 | 33 |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 to.Bool32x4ToString = Bool32x4ToString; | 911 to.Bool32x4ToString = Bool32x4ToString; |
905 to.Int16x8ToString = Int16x8ToString; | 912 to.Int16x8ToString = Int16x8ToString; |
906 to.Uint16x8ToString = Uint16x8ToString; | 913 to.Uint16x8ToString = Uint16x8ToString; |
907 to.Bool16x8ToString = Bool16x8ToString; | 914 to.Bool16x8ToString = Bool16x8ToString; |
908 to.Int8x16ToString = Int8x16ToString; | 915 to.Int8x16ToString = Int8x16ToString; |
909 to.Uint8x16ToString = Uint8x16ToString; | 916 to.Uint8x16ToString = Uint8x16ToString; |
910 to.Bool8x16ToString = Bool8x16ToString; | 917 to.Bool8x16ToString = Bool8x16ToString; |
911 }); | 918 }); |
912 | 919 |
913 }) | 920 }) |
OLD | NEW |