зеркало из https://github.com/mozilla/gecko-dev.git
Bug 842752: Remove unused (& debug-only) variable 'u' from SnapshotReader::readFrameHeader, and related code. r=nbp
This commit is contained in:
Родитель
28e8bbd3d7
Коммит
4bd8acda55
|
@ -134,15 +134,6 @@ SnapshotReader::readFrameHeader()
|
|||
JS_ASSERT(moreFrames());
|
||||
JS_ASSERT(slotsRead_ == slotCount_);
|
||||
|
||||
#ifdef DEBUG
|
||||
union {
|
||||
RawScript script;
|
||||
uint8_t bytes[sizeof(RawScript)];
|
||||
} u;
|
||||
for (size_t i = 0; i < sizeof(RawScript); i++)
|
||||
u.bytes[i] = reader_.readByte();
|
||||
#endif
|
||||
|
||||
pcOffset_ = reader_.readUnsigned();
|
||||
slotCount_ = reader_.readUnsigned();
|
||||
IonSpew(IonSpew_Snapshots, "Read pc offset %u, nslots %u", pcOffset_, slotCount_);
|
||||
|
@ -319,16 +310,6 @@ SnapshotWriter::startFrame(JSFunction *fun, UnrootedScript script, jsbytecode *p
|
|||
IonSpew(IonSpew_Snapshots, "Starting frame; formals %u, fixed %u, exprs %u",
|
||||
formalArgs, script->nfixed, exprStack);
|
||||
|
||||
#ifdef DEBUG
|
||||
union {
|
||||
RawScript script;
|
||||
uint8_t bytes[sizeof(RawScript)];
|
||||
} u;
|
||||
u.script = script;
|
||||
for (size_t i = 0; i < sizeof(RawScript); i++)
|
||||
writer_.writeByte(u.bytes[i]);
|
||||
#endif
|
||||
|
||||
JS_ASSERT(script->code <= pc && pc <= script->code + script->length);
|
||||
|
||||
uint32_t pcoff = uint32_t(pc - script->code);
|
||||
|
|
Загрузка…
Ссылка в новой задаче