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

Side by Side Diff: src/string.js

Issue 8566009: Remove hidden prototype for builtin functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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') | src/v8natives.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-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
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
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();
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/v8natives.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698