Skip to content

Commit

Permalink
Backed out changeset 26d55e902ada (bug 1130367) for xpcshell failures
Browse files Browse the repository at this point in the history
  • Loading branch information
KWierso committed Feb 24, 2015
1 parent b183534 commit 5a04044
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 1 addition & 4 deletions js/src/builtin/TestingFunctions.cpp
Expand Up @@ -1245,11 +1245,8 @@ ReadSPSProfilingStack(JSContext *cx, unsigned argc, jsval *vp)
CallArgs args = CallArgsFromVp(argc, vp);
args.rval().setUndefined();

// Return boolean 'false' if profiler is not enabled.
if (!cx->runtime()->spsProfiler.enabled()) {
if (!cx->runtime()->spsProfiler.enabled())
args.rval().setBoolean(false);
return true;
}

// Array holding physical jit stack frames.
RootedObject stack(cx, NewDenseEmptyArray(cx));
Expand Down
3 changes: 0 additions & 3 deletions js/src/vm/Stack.cpp
Expand Up @@ -1719,9 +1719,6 @@ JS::ProfilingFrameIterator::ProfilingFrameIterator(JSRuntime *rt, const Register
activation_(rt->profilingActivation()),
savedPrevJitTop_(nullptr)
{
// Should only be instantiated when profiling is enabled.
MOZ_ASSERT(rt_->spsProfiler.enabled());

if (!activation_)
return;

Expand Down

0 comments on commit 5a04044

Please sign in to comment.