Backed out 2 changesets (bug 1204169, bug 1074935) for Werror bustage CLOSED TREE

Backed out changeset b4621131ea01 (bug 1074935)
Backed out changeset 14dbd30e63af (bug 1204169)
This commit is contained in:
Wes Kocher 2015-09-17 13:58:15 -07:00
Родитель 75ffe89c69
Коммит 5f70fae987
3 изменённых файлов: 1 добавлений и 24 удалений

Просмотреть файл

@ -56,7 +56,6 @@ class MOZ_RAII AutoTraceSession
void operator=(const AutoTraceSession&) = delete;
JS::HeapState prevState;
AutoSPSEntry pseudoFrame;
};
struct MOZ_RAII AutoPrepareForTracing

Просмотреть файл

@ -5580,28 +5580,11 @@ GCRuntime::finishCollection(JS::gcreason::Reason reason)
}
}
static const char*
HeapStateToLabel(JS::HeapState heapState)
{
switch (heapState) {
case JS::HeapState::MinorCollecting:
return "js::Nursery::collect";
case JS::HeapState::MajorCollecting:
return "js::GCRuntime::collect";
case JS::HeapState::Tracing:
return "JS_IterateCompartments";
case JS::HeapState::Idle:
MOZ_CRASH("Should never have an Idle heap state when pushing GC pseudo frames!");
}
MOZ_ASSERT_UNREACHABLE("Should have exhausted every JS::HeapState variant!");
}
/* Start a new heap session. */
AutoTraceSession::AutoTraceSession(JSRuntime* rt, JS::HeapState heapState)
: lock(rt),
runtime(rt),
prevState(rt->heapState_),
pseudoFrame(rt, HeapStateToLabel(heapState), ProfileEntry::Category::GC)
prevState(rt->heapState_)
{
MOZ_ASSERT(rt->heapState_ == JS::HeapState::Idle);
MOZ_ASSERT(heapState != JS::HeapState::Idle);

Просмотреть файл

@ -14,7 +14,6 @@
#include "gc/Marking.h"
#include "js/UbiNode.h"
#include "vm/SPSProfiler.h"
#include "jscntxtinlines.h"
#include "jscompartmentinlines.h"
@ -555,10 +554,6 @@ JSRope::flattenInternal(ExclusiveContext* maybecx)
JSFlatString*
JSRope::flatten(ExclusiveContext* maybecx)
{
mozilla::Maybe<AutoSPSEntry> sps;
if (maybecx && maybecx->isJSContext())
sps.emplace(maybecx->asJSContext()->runtime(), "JSRope::flatten");
if (zone()->needsIncrementalBarrier())
return flattenInternal<WithIncrementalBarrier>(maybecx);
return flattenInternal<NoBarrier>(maybecx);