OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 // This files contains runtime support implemented in JavaScript. | 5 // This files contains runtime support implemented in JavaScript. |
6 | 6 |
7 // CAUTION: Some of the functions specified in this file are called | 7 // CAUTION: Some of the functions specified in this file are called |
8 // directly from compiled code. These are the functions with names in | 8 // directly from compiled code. These are the functions with names in |
9 // ALL CAPS. The compiled code passes the first argument in 'this'. | 9 // ALL CAPS. The compiled code passes the first argument in 'this'. |
10 | 10 |
11 | 11 |
12 // The following declarations are shared with other native JS files. | 12 // The following declarations are shared with other native JS files. |
13 // They are all declared at this one spot to avoid redeclaration errors. | 13 // They are all declared at this one spot to avoid redeclaration errors. |
14 | 14 |
15 (function(global, utils) { | 15 (function(global, utils) { |
16 | 16 |
17 %CheckIsBootstrapping(); | 17 %CheckIsBootstrapping(); |
18 | 18 |
19 var GlobalArray = global.Array; | 19 var GlobalArray = global.Array; |
20 var GlobalBoolean = global.Boolean; | 20 var GlobalBoolean = global.Boolean; |
21 var GlobalString = global.String; | 21 var GlobalString = global.String; |
22 var isConcatSpreadableSymbol = | 22 var isConcatSpreadableSymbol = |
23 utils.ImportNow("is_concat_spreadable_symbol"); | 23 utils.ImportNow("is_concat_spreadable_symbol"); |
| 24 var MakeRangeError; |
| 25 |
| 26 utils.Import(function(from) { |
| 27 MakeRangeError = from.MakeRangeError; |
| 28 }); |
24 | 29 |
25 // ---------------------------------------------------------------------------- | 30 // ---------------------------------------------------------------------------- |
26 | 31 |
27 /* ----------------------------- | 32 /* ----------------------------- |
28 - - - H e l p e r s - - - | 33 - - - H e l p e r s - - - |
29 ----------------------------- | 34 ----------------------------- |
30 */ | 35 */ |
31 | 36 |
32 function APPLY_PREPARE(args) { | 37 function APPLY_PREPARE(args) { |
33 var length; | 38 var length; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 "concat_iterable_to_array_builtin", CONCAT_ITERABLE_TO_ARRAY, | 260 "concat_iterable_to_array_builtin", CONCAT_ITERABLE_TO_ARRAY, |
256 "reflect_apply_prepare_builtin", REFLECT_APPLY_PREPARE, | 261 "reflect_apply_prepare_builtin", REFLECT_APPLY_PREPARE, |
257 "reflect_construct_prepare_builtin", REFLECT_CONSTRUCT_PREPARE, | 262 "reflect_construct_prepare_builtin", REFLECT_CONSTRUCT_PREPARE, |
258 ]); | 263 ]); |
259 | 264 |
260 %InstallToContext([ | 265 %InstallToContext([ |
261 "concat_iterable_to_array", ConcatIterableToArray, | 266 "concat_iterable_to_array", ConcatIterableToArray, |
262 ]); | 267 ]); |
263 | 268 |
264 }) | 269 }) |
OLD | NEW |