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; |
| 19 var MakeTypeError; |
18 var RegExpExec; | 20 var RegExpExec; |
19 var RegExpExecNoTests; | 21 var RegExpExecNoTests; |
20 var RegExpLastMatchInfo; | 22 var RegExpLastMatchInfo; |
21 | 23 |
22 utils.Import(function(from) { | 24 utils.Import(function(from) { |
23 ArrayIndexOf = from.ArrayIndexOf; | 25 ArrayIndexOf = from.ArrayIndexOf; |
24 ArrayJoin = from.ArrayJoin; | 26 ArrayJoin = from.ArrayJoin; |
| 27 MakeRangeError = from.MakeRangeError; |
| 28 MakeTypeError = from.MakeTypeError; |
25 RegExpExec = from.RegExpExec; | 29 RegExpExec = from.RegExpExec; |
26 RegExpExecNoTests = from.RegExpExecNoTests; | 30 RegExpExecNoTests = from.RegExpExecNoTests; |
27 RegExpLastMatchInfo = from.RegExpLastMatchInfo; | 31 RegExpLastMatchInfo = from.RegExpLastMatchInfo; |
28 }); | 32 }); |
29 | 33 |
30 //------------------------------------------------------------------- | 34 //------------------------------------------------------------------- |
31 | 35 |
32 // ECMA-262 section 15.5.4.2 | 36 // ECMA-262 section 15.5.4.2 |
33 function StringToString() { | 37 function StringToString() { |
34 if (!IS_STRING(this) && !IS_STRING_WRAPPER(this)) { | 38 if (!IS_STRING(this) && !IS_STRING_WRAPPER(this)) { |
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1190 to.StringLastIndexOf = StringLastIndexOfJS; | 1194 to.StringLastIndexOf = StringLastIndexOfJS; |
1191 to.StringMatch = StringMatchJS; | 1195 to.StringMatch = StringMatchJS; |
1192 to.StringReplace = StringReplace; | 1196 to.StringReplace = StringReplace; |
1193 to.StringSlice = StringSlice; | 1197 to.StringSlice = StringSlice; |
1194 to.StringSplit = StringSplitJS; | 1198 to.StringSplit = StringSplitJS; |
1195 to.StringSubstr = StringSubstr; | 1199 to.StringSubstr = StringSubstr; |
1196 to.StringSubstring = StringSubstring; | 1200 to.StringSubstring = StringSubstring; |
1197 }); | 1201 }); |
1198 | 1202 |
1199 }) | 1203 }) |
OLD | NEW |