Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: src/string.js

Issue 109004: Suggestion for 1717. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/runtime.cc ('k') | test/mjsunit/undeletable-functions.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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();
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | test/mjsunit/undeletable-functions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698