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

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

Issue 2814773005: [js] Avoid %_ClassOf for collection builtins. (Closed)
Patch Set: Make debug-evaluate happy. Created 3 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
« no previous file with comments | « no previous file | src/debug/debug-evaluate.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 a18551c6426745db9ef43ac8fe517ae427b9c2c3..926abbc389fa059bf31003a7c79b6fde54ded0d1 100644
--- a/src/compiler/js-intrinsic-lowering.cc
+++ b/src/compiler/js-intrinsic-lowering.cc
@@ -54,8 +54,22 @@ Reduction JSIntrinsicLowering::Reduce(Node* node) {
return ReduceIsInstanceType(node, JS_ARRAY_TYPE);
case Runtime::kInlineIsTypedArray:
return ReduceIsInstanceType(node, JS_TYPED_ARRAY_TYPE);
+ case Runtime::kInlineIsJSGlobalProxy:
adamk 2017/05/04 17:31:28 You can also add these to the no-FrameState whitel
Benedikt Meurer 2017/05/04 17:50:53 Good catch, done!
+ return ReduceIsInstanceType(node, JS_GLOBAL_PROXY_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);
case Runtime::kInlineIsJSReceiver:
return ReduceIsJSReceiver(node);
case Runtime::kInlineIsSmi:
« no previous file with comments | « no previous file | src/debug/debug-evaluate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698