From 4bd8acda55a5aac55c2e0784434d6e5029c3c925 Mon Sep 17 00:00:00 2001 From: Daniel Holbert Date: Fri, 1 Mar 2013 13:57:12 -0800 Subject: [PATCH] Bug 842752: Remove unused (& debug-only) variable 'u' from SnapshotReader::readFrameHeader, and related code. r=nbp --- js/src/ion/Snapshots.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/js/src/ion/Snapshots.cpp b/js/src/ion/Snapshots.cpp index bf271edcba2a..9e4f550a681b 100644 --- a/js/src/ion/Snapshots.cpp +++ b/js/src/ion/Snapshots.cpp @@ -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);