Bug 1010621: Remove redundant definition for helper-function 'IsCompilingAsmJS'. r=djvj
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 15 May 2014 16:29:27 -0700
changeset 183409 dff6a8c71b3f96f8c867843852fe70ccd3936c0e
parent 183408 179cea3a84da32acea5a80407ec3aaafd7a75fc8
child 183410 d61ae091de9c0e65a89b6fcfd3ed7df5e261a3df
push id26790
push usercbook@mozilla.com
push dateFri, 16 May 2014 12:02:39 +0000
treeherdermozilla-central@a3d9f7beef76 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdjvj
bugs1010621
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1010621: Remove redundant definition for helper-function 'IsCompilingAsmJS'. r=djvj
js/src/jit/IonMacroAssembler.cpp
--- a/js/src/jit/IonMacroAssembler.cpp
+++ b/js/src/jit/IonMacroAssembler.cpp
@@ -1199,24 +1199,16 @@ MacroAssembler::handleFailure(ExecutionM
     MacroAssemblerSpecific::handleFailureWithHandler(handler);
 
     // Doesn't actually emit code, but balances the leave()
     if (sps_)
         sps_->reenter(*this, InvalidReg);
 }
 
 #ifdef DEBUG
-static inline bool
-IsCompilingAsmJS()
-{
-    // asm.js compilation pushes an IonContext with a null JSCompartment.
-    IonContext *ictx = MaybeGetIonContext();
-    return ictx && ictx->compartment == nullptr;
-}
-
 static void
 AssumeUnreachable_(const char *output) {
     MOZ_ReportAssertionFailure(output, __FILE__, __LINE__);
 }
 #endif
 
 void
 MacroAssembler::assumeUnreachable(const char *output)