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

Unified Diff: src/array-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/array.js ('k') | src/arraybuffer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/array-iterator.js
diff --git a/src/array-iterator.js b/src/array-iterator.js
index fb18789f988f7b8c8673f6b52014d097fc3cb2dc..f04d6c974a4d41ea27347afde466ec1166e38d31 100644
--- a/src/array-iterator.js
+++ b/src/array-iterator.js
@@ -110,8 +110,8 @@ function SetUpArrayIterator() {
'next', ArrayIteratorNext
));
%FunctionSetName(ArrayIteratorIterator, '[Symbol.iterator]');
- %AddProperty(ArrayIterator.prototype, symbolIterator, ArrayIteratorIterator,
- DONT_ENUM);
+ %AddNamedProperty(ArrayIterator.prototype, symbolIterator,
+ ArrayIteratorIterator, DONT_ENUM);
}
SetUpArrayIterator();
@@ -125,7 +125,7 @@ function ExtendArrayPrototype() {
'keys', ArrayKeys
));
- %AddProperty($Array.prototype, symbolIterator, ArrayValues, DONT_ENUM);
+ %AddNamedProperty($Array.prototype, symbolIterator, ArrayValues, DONT_ENUM);
}
ExtendArrayPrototype();
@@ -146,10 +146,10 @@ macro TYPED_ARRAYS(FUNCTION)
endmacro
macro EXTEND_TYPED_ARRAY(NAME)
- %AddProperty($NAME.prototype, 'entries', ArrayEntries, DONT_ENUM);
- %AddProperty($NAME.prototype, 'values', ArrayValues, DONT_ENUM);
- %AddProperty($NAME.prototype, 'keys', ArrayKeys, DONT_ENUM);
- %AddProperty($NAME.prototype, symbolIterator, ArrayValues, DONT_ENUM);
+ %AddNamedProperty($NAME.prototype, 'entries', ArrayEntries, DONT_ENUM);
+ %AddNamedProperty($NAME.prototype, 'values', ArrayValues, DONT_ENUM);
+ %AddNamedProperty($NAME.prototype, 'keys', ArrayKeys, DONT_ENUM);
+ %AddNamedProperty($NAME.prototype, symbolIterator, ArrayValues, DONT_ENUM);
endmacro
TYPED_ARRAYS(EXTEND_TYPED_ARRAY)
« no previous file with comments | « src/array.js ('k') | src/arraybuffer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698