Bug 979730 part 4 - Make JS_IsRunning ignore saved frame boundaries. r=luke
authorJan de Mooij <jdemooij@mozilla.com>
Fri, 27 May 2016 17:58:29 +0200
changeset 338358 f4e2f8a9df189af509d9b78c0918731e26fd6248
parent 338357 b1a9f082d0ae4a34f63f27202ff8c146bd38a54c
child 338359 29e2af4247e1fdd3b865be0a17aa0ef26385b4a7
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersluke
bugs979730
milestone49.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 979730 part 4 - Make JS_IsRunning ignore saved frame boundaries. r=luke
js/src/jscntxt.cpp
--- a/js/src/jscntxt.cpp
+++ b/js/src/jscntxt.cpp
@@ -1050,21 +1050,18 @@ JSContext::restoreFrameChain()
     if (Activation* act = runtime()->activation())
         act->restoreFrameChain();
 }
 
 bool
 JSContext::currentlyRunning() const
 {
     for (ActivationIterator iter(runtime()); !iter.done(); ++iter) {
-        if (iter->cx() == this) {
-            if (iter->hasSavedFrameChain())
-                return false;
+        if (iter->cx() == this)
             return true;
-        }
     }
 
     return false;
 }
 
 static bool
 ComputeIsJITBroken()
 {