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

Unified Diff: src/code-factory.cc

Issue 2684043002: [turbofan] Use fast stub for ForInPrepare and ForInNext (Closed)
Patch Set: add missing SmiUntag and remove ForInNext RT function Created 3 years, 10 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
Index: src/code-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index c34f43272b24a8f9ad3cb860cbd25dbf702220e6..7f4673d9d4d80971593dec94bd3061e9f77cc132 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -193,7 +193,7 @@ Callable CodeFactory::StringFromCharCode(Isolate* isolate) {
return Callable(code, BuiltinDescriptor(isolate));
}
-#define DECLARE_TFS(Name, Kind, Extra, InterfaceDescriptor) \
+#define DECLARE_TFS(Name, Kind, Extra, InterfaceDescriptor, result_size) \
typedef InterfaceDescriptor##Descriptor Name##Descriptor;
BUILTIN_LIST(IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN, DECLARE_TFS,
IGNORE_BUILTIN, IGNORE_BUILTIN, IGNORE_BUILTIN)
@@ -364,6 +364,18 @@ Callable CodeFactory::FastNewStrictArguments(Isolate* isolate) {
}
// static
+Callable CodeFactory::ForInPrepare(Isolate* isolate) {
+ return Callable(isolate->builtins()->ForInPrepare(),
+ ForInPrepareDescriptor(isolate));
+}
+
+// static
+Callable CodeFactory::ForInNext(Isolate* isolate) {
+ return Callable(isolate->builtins()->ForInNext(),
+ ForInNextDescriptor(isolate));
+}
+
+// static
Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) {
AllocateHeapNumberStub stub(isolate);
return make_callable(stub);

Powered by Google App Engine
This is Rietveld 408576698