From 4052fb6dc471968d3b0fb45f16dc930d3f18427a Mon Sep 17 00:00:00 2001 From: Jan de Mooij Date: Tue, 9 May 2017 14:03:44 +0200 Subject: [PATCH] Bug 1363054 part 1 - Remove redundant addMonitorStubForValue calls. r=tcampbell --- js/src/jit/BaselineIC.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/js/src/jit/BaselineIC.cpp b/js/src/jit/BaselineIC.cpp index 2e53cfebdfa2..64b00cc3941d 100644 --- a/js/src/jit/BaselineIC.cpp +++ b/js/src/jit/BaselineIC.cpp @@ -2466,13 +2466,6 @@ DoCallFallback(JSContext* cx, BaselineFrame* frame, ICCall_Fallback* stub_, uint if (stub.invalid()) return true; - // Attach a new TypeMonitor stub for this value. - ICTypeMonitor_Fallback* typeMonFbStub = stub->fallbackMonitorStub(); - if (!typeMonFbStub->addMonitorStubForValue(cx, &info, res)) - { - return false; - } - // Add a type monitor stub for the resulting value. if (!stub->addMonitorStubForValue(cx, &info, res)) return false; @@ -2527,13 +2520,6 @@ DoSpreadCallFallback(JSContext* cx, BaselineFrame* frame, ICCall_Fallback* stub_ if (stub.invalid()) return true; - // Attach a new TypeMonitor stub for this value. - ICTypeMonitor_Fallback* typeMonFbStub = stub->fallbackMonitorStub(); - if (!typeMonFbStub->addMonitorStubForValue(cx, &info, res)) - { - return false; - } - // Add a type monitor stub for the resulting value. if (!stub->addMonitorStubForValue(cx, &info, res)) return false;