Bug 1015808 - Fix the compiler warnings about members of AutoFlushICache being unused; r=jandem

This commit is contained in:
Ehsan Akhgari 2014-05-26 09:18:39 -04:00
parent 8da02158b7
commit f1cf9f001a
2 changed files with 4 additions and 0 deletions

View File

@ -3017,10 +3017,12 @@ AutoFlushICache::setInhibit()
// the respective AutoFlushICache dynamic context.
//
AutoFlushICache::AutoFlushICache(const char *nonce, bool inhibit)
#if defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_MIPS)
: start_(0),
stop_(0),
name_(nonce),
inhibit_(inhibit)
#endif
{
#if defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_MIPS)
PerThreadData *pt = TlsPerThreadData.get();

View File

@ -777,11 +777,13 @@ class JitRuntime;
struct AutoFlushICache
{
private:
#if defined(JS_CODEGEN_ARM) || defined(JS_CODEGEN_MIPS)
uintptr_t start_;
uintptr_t stop_;
const char *name_;
bool inhibit_;
AutoFlushICache *prev_;
#endif
public:
static void setRange(uintptr_t p, size_t len);