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

Unified Diff: src/builtins/builtins.h

Issue 2348493003: [builtins] move String.prototype[@@iterator] to C++ builtin (Closed)
Patch Set: V8 (rebase + fix bytecode expectations) Created 4 years, 3 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/bootstrapper.cc ('k') | src/builtins/builtins-iterator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins/builtins.h
diff --git a/src/builtins/builtins.h b/src/builtins/builtins.h
index 4bd91f566257ad2ccf900665ef2c2af3b278a953..aba947beffacff396d475614108be55df734a993 100644
--- a/src/builtins/builtins.h
+++ b/src/builtins/builtins.h
@@ -376,6 +376,9 @@ namespace internal {
/* ES6 section 18.2.3 isNaN ( number ) */ \
TFJ(GlobalIsNaN, 2) \
\
+ /* ES6 #sec-%iteratorprototype%-@@iterator */ \
+ TFJ(IteratorPrototypeIterator, 1) \
+ \
/* JSON */ \
CPP(JsonParse) \
CPP(JsonStringify) \
@@ -549,6 +552,11 @@ namespace internal {
CPP(StringPrototypeTrimRight) \
/* ES6 section 21.1.3.28 String.prototype.valueOf () */ \
TFJ(StringPrototypeValueOf, 1) \
+ /* ES6 #sec-string.prototype-@@iterator */ \
+ CPP(StringPrototypeIterator) \
+ \
+ /* StringIterator */ \
+ CPP(StringIteratorPrototypeNext) \
\
/* Symbol */ \
CPP(SymbolConstructor) \
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins/builtins-iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698