diff --git a/js/src/ion/IonBuilder.cpp b/js/src/ion/IonBuilder.cpp index ab879d07f1d..5c5ec509248 100644 --- a/js/src/ion/IonBuilder.cpp +++ b/js/src/ion/IonBuilder.cpp @@ -4787,9 +4787,6 @@ IonBuilder::jsop_call(uint32_t argc, bool constructing) if (!callInfo.init(current, argc)) return false; - if (gotLambda && targets.length() > 0) - callInfo.setLambda(true); - // Try inlining InliningStatus status = inlineCallsite(targets, originals, gotLambda, callInfo); if (status == InliningStatus_Inlined) diff --git a/js/src/ion/IonBuilder.h b/js/src/ion/IonBuilder.h index de80bda065f..209072b08ee 100644 --- a/js/src/ion/IonBuilder.h +++ b/js/src/ion/IonBuilder.h @@ -658,7 +658,6 @@ class CallInfo Vector args_; bool constructing_; - bool lambda_; public: CallInfo(JSContext *cx, bool constructing) @@ -752,13 +751,6 @@ class CallInfo return constructing_; } - bool isLambda() const { - return lambda_; - } - void setLambda(bool lambda) { - lambda_ = lambda; - } - void wrapArgs(MBasicBlock *current) { thisArg_ = wrap(current, thisArg_); for (uint32_t i = 0; i < argc(); i++)