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

Unified Diff: src/crankshaft/hydrogen-instructions.cc

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/crankshaft/hydrogen-instructions.h ('k') | src/deoptimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen-instructions.cc
diff --git a/src/crankshaft/hydrogen-instructions.cc b/src/crankshaft/hydrogen-instructions.cc
index fb810ff16f12cdc2af37b50b54209a9aa8de67b6..4e1d6112526db4f36f4b7b86b83b6f1cc22c6f26 100644
--- a/src/crankshaft/hydrogen-instructions.cc
+++ b/src/crankshaft/hydrogen-instructions.cc
@@ -1553,6 +1553,9 @@ void HCheckInstanceType::GetCheckInterval(InstanceType* first,
case IS_JS_ARRAY:
*first = *last = JS_ARRAY_TYPE;
return;
+ case IS_JS_FUNCTION:
+ *first = *last = JS_FUNCTION_TYPE;
+ return;
case IS_JS_DATE:
*first = *last = JS_DATE_TYPE;
return;
@@ -1625,6 +1628,8 @@ const char* HCheckInstanceType::GetCheckName() const {
switch (check_) {
case IS_JS_RECEIVER: return "object";
case IS_JS_ARRAY: return "array";
+ case IS_JS_FUNCTION:
+ return "function";
case IS_JS_DATE:
return "date";
case IS_STRING: return "string";
« no previous file with comments | « src/crankshaft/hydrogen-instructions.h ('k') | src/deoptimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698