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

Unified Diff: src/compiler/js-type-hint-lowering.cc

Issue 2956843002: [turbofan] Replace uninitialized JSCall nodes with SOFT deopt. (Closed)
Patch Set: Several improvements. Created 3 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/compiler/js-type-hint-lowering.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-type-hint-lowering.cc
diff --git a/src/compiler/js-type-hint-lowering.cc b/src/compiler/js-type-hint-lowering.cc
index 0d6518606c0a4f7684b45c080465cd4b700d749c..433e51c61390d5b3dde6223fc480c528a248fd30 100644
--- a/src/compiler/js-type-hint-lowering.cc
+++ b/src/compiler/js-type-hint-lowering.cc
@@ -274,6 +274,22 @@ Reduction JSTypeHintLowering::ReduceToPrimitiveToStringOperation(
return Reduction();
}
+Reduction JSTypeHintLowering::ReduceCallOperation(const Operator* op,
+ Node* const* args,
+ int arg_count, Node* effect,
+ Node* control,
+ FeedbackSlot slot) const {
+ DCHECK_EQ(IrOpcode::kJSCall, op->opcode());
+ DCHECK(!slot.IsInvalid());
+ CallICNexus nexus(feedback_vector(), slot);
+ if (Node* node = TryBuildSoftDeopt(
+ nexus, effect, control,
+ DeoptimizeReason::kInsufficientTypeFeedbackForCall)) {
+ return Reduction(node);
+ }
+ return Reduction();
+}
+
Reduction JSTypeHintLowering::ReduceLoadNamedOperation(
const Operator* op, Node* obj, Node* effect, Node* control,
FeedbackSlot slot) const {
« no previous file with comments | « src/compiler/js-type-hint-lowering.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698