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

Unified Diff: src/code-stubs.h

Issue 2044113002: Turn Function.prototype.bind into a hydrogen stub optimized for the common case (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: arm64 Created 4 years, 6 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/builtins.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index abb0c9622ca0c1bfd067f3d61477d6f8dd63bc9e..3f1678205de5a3a3e3f0fb087e061f3805dc4a58 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -65,6 +65,7 @@ namespace internal {
V(FastArrayPush) \
V(FastCloneRegExp) \
V(FastCloneShallowArray) \
+ V(FastFunctionBind) \
V(FastNewClosure) \
V(FastNewContext) \
V(FastNewObject) \
@@ -1268,10 +1269,18 @@ class FastArrayPushStub : public HydrogenCodeStub {
explicit FastArrayPushStub(Isolate* isolate) : HydrogenCodeStub(isolate) {}
private:
- DEFINE_CALL_INTERFACE_DESCRIPTOR(FastArrayPush);
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(VarArgFunction);
DEFINE_HYDROGEN_CODE_STUB(FastArrayPush, HydrogenCodeStub);
};
+class FastFunctionBindStub : public HydrogenCodeStub {
+ public:
+ explicit FastFunctionBindStub(Isolate* isolate) : HydrogenCodeStub(isolate) {}
+
+ private:
+ DEFINE_CALL_INTERFACE_DESCRIPTOR(VarArgFunction);
+ DEFINE_HYDROGEN_CODE_STUB(FastFunctionBind, HydrogenCodeStub);
+};
enum AllocationSiteOverrideMode {
DONT_OVERRIDE,
« no previous file with comments | « src/builtins.cc ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698