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

Unified Diff: src/compiler/js-intrinsic-lowering.cc

Issue 2814773005: [js] Avoid %_ClassOf for collection builtins. (Closed)
Patch Set: Disable the failing test for CS again. Created 3 years, 7 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 | « no previous file | src/compiler/linkage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-intrinsic-lowering.cc
diff --git a/src/compiler/js-intrinsic-lowering.cc b/src/compiler/js-intrinsic-lowering.cc
index 28c6b940b020954eefd19cc5df2bc68d925edc99..6f916bed6d7f064c0029ea45759f8b86d4d16112 100644
--- a/src/compiler/js-intrinsic-lowering.cc
+++ b/src/compiler/js-intrinsic-lowering.cc
@@ -56,6 +56,18 @@ Reduction JSIntrinsicLowering::Reduce(Node* node) {
return ReduceIsInstanceType(node, JS_TYPED_ARRAY_TYPE);
case Runtime::kInlineIsJSProxy:
return ReduceIsInstanceType(node, JS_PROXY_TYPE);
+ case Runtime::kInlineIsJSMap:
+ return ReduceIsInstanceType(node, JS_MAP_TYPE);
+ case Runtime::kInlineIsJSSet:
+ return ReduceIsInstanceType(node, JS_SET_TYPE);
+ case Runtime::kInlineIsJSMapIterator:
+ return ReduceIsInstanceType(node, JS_MAP_ITERATOR_TYPE);
+ case Runtime::kInlineIsJSSetIterator:
+ return ReduceIsInstanceType(node, JS_SET_ITERATOR_TYPE);
+ case Runtime::kInlineIsJSWeakMap:
+ return ReduceIsInstanceType(node, JS_WEAK_MAP_TYPE);
+ case Runtime::kInlineIsJSWeakSet:
+ return ReduceIsInstanceType(node, JS_WEAK_SET_TYPE);
rmcilroy 2017/05/05 13:45:31 Does it make sense to add these as intrinsics to t
Benedikt Meurer 2017/05/05 14:00:58 Ideally this code should be obsolete soon with a C
case Runtime::kInlineIsJSReceiver:
return ReduceIsJSReceiver(node);
case Runtime::kInlineIsSmi:
« no previous file with comments | « no previous file | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698