OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 %SetProperty($String.prototype, "constructor", $String, DONT_ENUM); | 950 %SetProperty($String.prototype, "constructor", $String, DONT_ENUM); |
951 | 951 |
952 | 952 |
953 // Set up the non-enumerable functions on the String object. | 953 // Set up the non-enumerable functions on the String object. |
954 InstallFunctions($String, DONT_ENUM, $Array( | 954 InstallFunctions($String, DONT_ENUM, $Array( |
955 "fromCharCode", StringFromCharCode | 955 "fromCharCode", StringFromCharCode |
956 )); | 956 )); |
957 | 957 |
958 | 958 |
959 // Set up the non-enumerable functions on the String prototype object. | 959 // Set up the non-enumerable functions on the String prototype object. |
960 InstallFunctionsOnHiddenPrototype($String.prototype, DONT_ENUM, $Array( | 960 InstallFunctions($String.prototype, DONT_ENUM, $Array( |
961 "valueOf", StringValueOf, | 961 "valueOf", StringValueOf, |
962 "toString", StringToString, | 962 "toString", StringToString, |
963 "charAt", StringCharAt, | 963 "charAt", StringCharAt, |
964 "charCodeAt", StringCharCodeAt, | 964 "charCodeAt", StringCharCodeAt, |
965 "concat", StringConcat, | 965 "concat", StringConcat, |
966 "indexOf", StringIndexOf, | 966 "indexOf", StringIndexOf, |
967 "lastIndexOf", StringLastIndexOf, | 967 "lastIndexOf", StringLastIndexOf, |
968 "localeCompare", StringLocaleCompare, | 968 "localeCompare", StringLocaleCompare, |
969 "match", StringMatch, | 969 "match", StringMatch, |
970 "replace", StringReplace, | 970 "replace", StringReplace, |
(...skipping 19 matching lines...) Expand all Loading... |
990 "fixed", StringFixed, | 990 "fixed", StringFixed, |
991 "italics", StringItalics, | 991 "italics", StringItalics, |
992 "small", StringSmall, | 992 "small", StringSmall, |
993 "strike", StringStrike, | 993 "strike", StringStrike, |
994 "sub", StringSub, | 994 "sub", StringSub, |
995 "sup", StringSup | 995 "sup", StringSup |
996 )); | 996 )); |
997 } | 997 } |
998 | 998 |
999 SetUpString(); | 999 SetUpString(); |
OLD | NEW |