зеркало из https://github.com/mozilla/gecko-dev.git
Bug 888088 (part 0) - Some minor #include fix-ups. r=wmccloskey.
--HG-- extra : rebase_source : edb1291d4571c2ea3bd942e2b1fcea0ab58cbe25
This commit is contained in:
Родитель
d601f5454b
Коммит
9f8f6cd254
|
@ -9,6 +9,8 @@
|
|||
|
||||
#include "jspubtd.h"
|
||||
|
||||
#include "js/Utility.h"
|
||||
|
||||
/* These values are private to the JS engine. */
|
||||
namespace js {
|
||||
namespace gc {
|
||||
|
@ -50,7 +52,7 @@ namespace shadow {
|
|||
|
||||
struct ArenaHeader
|
||||
{
|
||||
js::Zone *zone;
|
||||
JS::Zone *zone;
|
||||
};
|
||||
|
||||
struct Zone
|
||||
|
@ -136,7 +138,7 @@ IsIncrementalBarrierNeededOnGCThing(shadow::Runtime *rt, void *thing, JSGCTraceK
|
|||
{
|
||||
if (!rt->needsBarrier_)
|
||||
return false;
|
||||
js::Zone *zone = GetGCThingZone(thing);
|
||||
JS::Zone *zone = GetGCThingZone(thing);
|
||||
return reinterpret_cast<shadow::Zone *>(zone)->needsBarrier_;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,8 +98,8 @@ struct Cell
|
|||
MOZ_ALWAYS_INLINE void unmark(uint32_t color) const;
|
||||
|
||||
inline JSRuntime *runtime() const;
|
||||
inline Zone *tenuredZone() const;
|
||||
inline bool tenuredIsInsideZone(Zone *zone) const;
|
||||
inline JS::Zone *tenuredZone() const;
|
||||
inline bool tenuredIsInsideZone(JS::Zone *zone) const;
|
||||
|
||||
#ifdef DEBUG
|
||||
inline bool isAligned() const;
|
||||
|
@ -457,7 +457,7 @@ struct ArenaHeader : public JS::shadow::ArenaHeader
|
|||
return allocKind < size_t(FINALIZE_LIMIT);
|
||||
}
|
||||
|
||||
void init(Zone *zoneArg, AllocKind kind) {
|
||||
void init(JS::Zone *zoneArg, AllocKind kind) {
|
||||
JS_ASSERT(!allocated());
|
||||
JS_ASSERT(!markOverflow);
|
||||
JS_ASSERT(!allocatedDuringIncremental);
|
||||
|
@ -781,7 +781,7 @@ struct Chunk
|
|||
return info.numArenasFree != 0;
|
||||
}
|
||||
|
||||
inline void addToAvailableList(Zone *zone);
|
||||
inline void addToAvailableList(JS::Zone *zone);
|
||||
inline void insertToAvailableList(Chunk **insertPoint);
|
||||
inline void removeFromAvailableList();
|
||||
|
||||
|
@ -987,7 +987,7 @@ Cell::unmark(uint32_t color) const
|
|||
chunk()->bitmap.unmark(this, color);
|
||||
}
|
||||
|
||||
Zone *
|
||||
JS::Zone *
|
||||
Cell::tenuredZone() const
|
||||
{
|
||||
JS_ASSERT(InSequentialOrExclusiveParallelSection());
|
||||
|
@ -996,7 +996,7 @@ Cell::tenuredZone() const
|
|||
}
|
||||
|
||||
bool
|
||||
Cell::tenuredIsInsideZone(Zone *zone) const
|
||||
Cell::tenuredIsInsideZone(JS::Zone *zone) const
|
||||
{
|
||||
JS_ASSERT(isTenured());
|
||||
return zone == arenaHeader()->zone;
|
||||
|
|
Загрузка…
Ссылка в новой задаче