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

Unified Diff: src/code-factory.cc

Issue 1105513002: [turbofan] Use FastNewClosureStub if possible. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 8 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 3cd42717ac4ddceb492c6765368b59b389898ebc..1e87ce3b2b5733c0535640bcc5b28ead5a312874 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -158,6 +158,15 @@ Callable CodeFactory::FastCloneShallowObject(Isolate* isolate, int length) {
// static
+Callable CodeFactory::FastNewClosure(Isolate* isolate,
+ LanguageMode language_mode,
+ FunctionKind kind) {
+ FastNewClosureStub stub(isolate, language_mode, kind);
+ return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
+}
+
+
+// static
Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) {
AllocateHeapNumberStub stub(isolate);
return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());

Powered by Google App Engine
This is Rietveld 408576698