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

Unified Diff: src/string-iterator.js

Issue 384003003: Replace AddProperty by AddNamedProperty to speed up the common case (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/string.js ('k') | src/symbol.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/string-iterator.js
diff --git a/src/string-iterator.js b/src/string-iterator.js
index 7a2309de705c4a19fa86e8d6927641c043a939d2..7222885a56f465931980d646a277ea9c69cc1abf 100644
--- a/src/string-iterator.js
+++ b/src/string-iterator.js
@@ -84,8 +84,8 @@ function SetUpStringIterator() {
'next', StringIteratorNext
));
%FunctionSetName(StringIteratorIterator, '[Symbol.iterator]');
- %AddProperty(StringIterator.prototype, symbolIterator, StringIteratorIterator,
- DONT_ENUM);
+ %AddNamedProperty(StringIterator.prototype, symbolIterator,
+ StringIteratorIterator, DONT_ENUM);
}
SetUpStringIterator();
@@ -100,7 +100,7 @@ function ExtendStringPrototypeWithIterator() {
%CheckIsBootstrapping();
%FunctionSetName(StringPrototypeIterator, '[Symbol.iterator]');
- %AddProperty($String.prototype, symbolIterator, StringPrototypeIterator,
- DONT_ENUM);
+ %AddNamedProperty($String.prototype, symbolIterator,
+ StringPrototypeIterator, DONT_ENUM);
}
ExtendStringPrototypeWithIterator();
« no previous file with comments | « src/string.js ('k') | src/symbol.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698