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 // 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 %SetProperty($String.prototype, "constructor", $String, DONT_ENUM); | 824 %SetProperty($String.prototype, "constructor", $String, DONT_ENUM); |
825 | 825 |
826 | 826 |
827 // Setup the non-enumerable functions on the String object. | 827 // Setup the non-enumerable functions on the String object. |
828 InstallFunctions($String, DONT_ENUM, $Array( | 828 InstallFunctions($String, DONT_ENUM, $Array( |
829 "fromCharCode", StringFromCharCode | 829 "fromCharCode", StringFromCharCode |
830 )); | 830 )); |
831 | 831 |
832 | 832 |
833 // Setup the non-enumerable functions on the String prototype object. | 833 // Setup the non-enumerable functions on the String prototype object. |
834 InstallFunctions($String.prototype, DONT_ENUM, $Array( | 834 InstallFunctionsOnHiddenPrototype($String.prototype, DONT_ENUM, $Array( |
835 "valueOf", StringValueOf, | 835 "valueOf", StringValueOf, |
836 "toString", StringToString, | 836 "toString", StringToString, |
837 "charAt", StringCharAt, | 837 "charAt", StringCharAt, |
838 "charCodeAt", StringCharCodeAt, | 838 "charCodeAt", StringCharCodeAt, |
839 "concat", StringConcat, | 839 "concat", StringConcat, |
840 "indexOf", StringIndexOf, | 840 "indexOf", StringIndexOf, |
841 "lastIndexOf", StringLastIndexOf, | 841 "lastIndexOf", StringLastIndexOf, |
842 "localeCompare", StringLocaleCompare, | 842 "localeCompare", StringLocaleCompare, |
843 "match", StringMatch, | 843 "match", StringMatch, |
844 "replace", StringReplace, | 844 "replace", StringReplace, |
(...skipping 18 matching lines...) Expand all Loading... |
863 "small", StringSmall, | 863 "small", StringSmall, |
864 "strike", StringStrike, | 864 "strike", StringStrike, |
865 "sub", StringSub, | 865 "sub", StringSub, |
866 "sup", StringSup, | 866 "sup", StringSup, |
867 "toJSON", StringToJSON | 867 "toJSON", StringToJSON |
868 )); | 868 )); |
869 } | 869 } |
870 | 870 |
871 | 871 |
872 SetupString(); | 872 SetupString(); |
OLD | NEW |