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 GlobalObject = global.Object; | 14 var GlobalObject = global.Object; |
| 15 var MakeTypeError; |
15 var MaxSimple; | 16 var MaxSimple; |
16 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); | 17 var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol"); |
17 | 18 |
18 utils.Import(function(from) { | 19 utils.Import(function(from) { |
| 20 MakeTypeError = from.MakeTypeError; |
19 MaxSimple = from.MaxSimple; | 21 MaxSimple = from.MaxSimple; |
20 }); | 22 }); |
21 | 23 |
22 // ------------------------------------------------------------------- | 24 // ------------------------------------------------------------------- |
23 | 25 |
24 | 26 |
25 function CheckSharedIntegerTypedArray(ia) { | 27 function CheckSharedIntegerTypedArray(ia) { |
26 if (!%IsSharedIntegerTypedArray(ia)) { | 28 if (!%IsSharedIntegerTypedArray(ia)) { |
27 throw MakeTypeError(kNotIntegerSharedTypedArray, ia); | 29 throw MakeTypeError(kNotIntegerSharedTypedArray, ia); |
28 } | 30 } |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 "or", AtomicsOrJS, | 206 "or", AtomicsOrJS, |
205 "xor", AtomicsXorJS, | 207 "xor", AtomicsXorJS, |
206 "exchange", AtomicsExchangeJS, | 208 "exchange", AtomicsExchangeJS, |
207 "isLockFree", AtomicsIsLockFreeJS, | 209 "isLockFree", AtomicsIsLockFreeJS, |
208 "futexWait", AtomicsFutexWaitJS, | 210 "futexWait", AtomicsFutexWaitJS, |
209 "futexWake", AtomicsFutexWakeJS, | 211 "futexWake", AtomicsFutexWakeJS, |
210 "futexWakeOrRequeue", AtomicsFutexWakeOrRequeueJS, | 212 "futexWakeOrRequeue", AtomicsFutexWakeOrRequeueJS, |
211 ]); | 213 ]); |
212 | 214 |
213 }) | 215 }) |
OLD | NEW |