OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 %CheckIsBootstrapping(); | 7 %CheckIsBootstrapping(); |
8 | 8 |
9 // ------------------------------------------------------------------- | 9 // ------------------------------------------------------------------- |
10 // Imports | 10 // Imports |
11 | 11 |
12 var ArrayIndexOf; | 12 var ArrayIndexOf; |
13 var ArrayJoin; | 13 var ArrayJoin; |
14 var GlobalRegExp = global.RegExp; | 14 var GlobalRegExp = global.RegExp; |
15 var GlobalString = global.String; | 15 var GlobalString = global.String; |
16 var InternalArray = utils.InternalArray; | 16 var InternalArray = utils.InternalArray; |
17 var InternalPackedArray = utils.InternalPackedArray; | 17 var InternalPackedArray = utils.InternalPackedArray; |
18 var MakeRangeError; | 18 var MakeRangeError; |
19 var MakeTypeError; | 19 var MakeTypeError; |
20 var RegExpExec; | 20 var RegExpExec; |
21 var RegExpExecNoTests; | 21 var RegExpExecNoTests; |
| 22 var regExpFlagsSymbol = utils.ImportNow("regexp_flags_symbol"); |
22 var RegExpLastMatchInfo; | 23 var RegExpLastMatchInfo; |
23 | 24 |
24 utils.Import(function(from) { | 25 utils.Import(function(from) { |
25 ArrayIndexOf = from.ArrayIndexOf; | 26 ArrayIndexOf = from.ArrayIndexOf; |
26 ArrayJoin = from.ArrayJoin; | 27 ArrayJoin = from.ArrayJoin; |
27 MakeRangeError = from.MakeRangeError; | 28 MakeRangeError = from.MakeRangeError; |
28 MakeTypeError = from.MakeTypeError; | 29 MakeTypeError = from.MakeTypeError; |
29 RegExpExec = from.RegExpExec; | 30 RegExpExec = from.RegExpExec; |
30 RegExpExecNoTests = from.RegExpExecNoTests; | 31 RegExpExecNoTests = from.RegExpExecNoTests; |
31 RegExpLastMatchInfo = from.RegExpLastMatchInfo; | 32 RegExpLastMatchInfo = from.RegExpLastMatchInfo; |
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 to.StringLastIndexOf = StringLastIndexOfJS; | 1171 to.StringLastIndexOf = StringLastIndexOfJS; |
1171 to.StringMatch = StringMatchJS; | 1172 to.StringMatch = StringMatchJS; |
1172 to.StringReplace = StringReplace; | 1173 to.StringReplace = StringReplace; |
1173 to.StringSlice = StringSlice; | 1174 to.StringSlice = StringSlice; |
1174 to.StringSplit = StringSplitJS; | 1175 to.StringSplit = StringSplitJS; |
1175 to.StringSubstr = StringSubstr; | 1176 to.StringSubstr = StringSubstr; |
1176 to.StringSubstring = StringSubstring; | 1177 to.StringSubstring = StringSubstring; |
1177 }); | 1178 }); |
1178 | 1179 |
1179 }) | 1180 }) |
OLD | NEW |