Bug 868369 - remove guard in jsd_SetExecutionHook made superfluous by change in _newJSDScript to align with beta and aurora branches. r=me
authorTill Schneidereit <tschneidereit@gmail.com>
Mon, 06 May 2013 21:43:57 +0200
changeset 141996 c99512985ee00ac3b930696fd9b630b782b961a3
parent 141995 0477c9c2c0e249f26c66499abee95fafeae9ce71
child 141997 6cb837e2d738f19746fd5ce9ec4ab608e78cb421
push id2579
push userakeybl@mozilla.com
push dateMon, 24 Jun 2013 18:52:47 +0000
treeherdermozilla-beta@b69b7de8a05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs868369
milestone23.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 868369 - remove guard in jsd_SetExecutionHook made superfluous by change in _newJSDScript to align with beta and aurora branches. r=me
js/jsd/jsd_scpt.cpp
--- a/js/jsd/jsd_scpt.cpp
+++ b/js/jsd/jsd_scpt.cpp
@@ -824,23 +824,16 @@ jsd_SetExecutionHook(JSDContext*        
                      JSD_ExecutionHookProc hook,
                      void*                 callerdata)
 {
     JSDExecHook* jsdhook;
     JSBool rv;
     JSCompartment* oldCompartment;
 
     JSD_LOCK();
-
-    if ( JS_GetScriptIsSelfHosted(jsdscript->script) )
-    {
-        JSD_UNLOCK();
-        return JS_TRUE;
-    }
-
     if( ! hook )
     {
         jsd_ClearExecutionHook(jsdc, jsdscript, pc);
         JSD_UNLOCK();
         return JS_TRUE;
     }
 
     jsdhook = _findHook(jsdc, jsdscript, pc);