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

Side by Side Diff: src/string.js

Issue 6445: This change removes the %AddProperty native JavaScript function from V8.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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') | 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-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 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 777
778 ReplaceResultBuilder.prototype.generate = function() { 778 ReplaceResultBuilder.prototype.generate = function() {
779 return %StringBuilderConcat(this.elements, this.special_string); 779 return %StringBuilderConcat(this.elements, this.special_string);
780 } 780 }
781 781
782 782
783 // ------------------------------------------------------------------- 783 // -------------------------------------------------------------------
784 784
785 function SetupString() { 785 function SetupString() {
786 // Setup the constructor property on the String prototype object. 786 // Setup the constructor property on the String prototype object.
787 %AddProperty($String.prototype, "constructor", $String, DONT_ENUM); 787 %SetProperty($String.prototype, "constructor", $String, DONT_ENUM);
788 788
789 789
790 // Setup the non-enumerable functions on the String object. 790 // Setup the non-enumerable functions on the String object.
791 InstallFunctions($String, DONT_ENUM, $Array( 791 InstallFunctions($String, DONT_ENUM, $Array(
792 "fromCharCode", StringFromCharCode 792 "fromCharCode", StringFromCharCode
793 )); 793 ));
794 794
795 795
796 // Setup the non-enumerable functions on the String prototype object. 796 // Setup the non-enumerable functions on the String prototype object.
797 InstallFunctions($String.prototype, DONT_ENUM, $Array( 797 InstallFunctions($String.prototype, DONT_ENUM, $Array(
(...skipping 27 matching lines...) Expand all
825 "italics", StringItalics, 825 "italics", StringItalics,
826 "small", StringSmall, 826 "small", StringSmall,
827 "strike", StringStrike, 827 "strike", StringStrike,
828 "sub", StringSub, 828 "sub", StringSub,
829 "sup", StringSup 829 "sup", StringSup
830 )); 830 ));
831 } 831 }
832 832
833 833
834 SetupString(); 834 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