Bug 1005955 - asmjscache: remove unused 'global' argument (r=janv)

This commit is contained in:
Luke Wagner 2014-05-06 12:58:00 -05:00
parent a623403144
commit 48f8d792b5
5 changed files with 10 additions and 18 deletions

View File

@ -1629,8 +1629,7 @@ OpenEntryForRead(nsIPrincipal* aPrincipal,
}
void
CloseEntryForRead(JS::Handle<JSObject*> global,
size_t aSize,
CloseEntryForRead(size_t aSize,
const uint8_t* aMemory,
intptr_t aFile)
{
@ -1683,8 +1682,7 @@ OpenEntryForWrite(nsIPrincipal* aPrincipal,
}
void
CloseEntryForWrite(JS::Handle<JSObject*> global,
size_t aSize,
CloseEntryForWrite(size_t aSize,
uint8_t* aMemory,
intptr_t aFile)
{

View File

@ -109,8 +109,7 @@ OpenEntryForRead(nsIPrincipal* aPrincipal,
const uint8_t** aMemory,
intptr_t *aHandle);
void
CloseEntryForRead(JS::Handle<JSObject*> aGlobal,
size_t aSize,
CloseEntryForRead(size_t aSize,
const uint8_t* aMemory,
intptr_t aHandle);
bool
@ -122,8 +121,7 @@ OpenEntryForWrite(nsIPrincipal* aPrincipal,
uint8_t** aMemory,
intptr_t* aHandle);
void
CloseEntryForWrite(JS::Handle<JSObject*> aGlobal,
size_t aSize,
CloseEntryForWrite(size_t aSize,
uint8_t* aMemory,
intptr_t aHandle);

View File

@ -1246,7 +1246,7 @@ struct ScopedCacheEntryOpenedForWrite
~ScopedCacheEntryOpenedForWrite() {
if (memory)
cx->asmJSCacheOps().closeEntryForWrite(cx->global(), serializedSize, memory, handle);
cx->asmJSCacheOps().closeEntryForWrite(serializedSize, memory, handle);
}
};
@ -1303,7 +1303,7 @@ struct ScopedCacheEntryOpenedForRead
~ScopedCacheEntryOpenedForRead() {
if (memory)
cx->asmJSCacheOps().closeEntryForRead(cx->global(), serializedSize, memory, handle);
cx->asmJSCacheOps().closeEntryForRead(serializedSize, memory, handle);
}
};

View File

@ -4906,8 +4906,7 @@ typedef bool
(* OpenAsmJSCacheEntryForReadOp)(HandleObject global, const jschar *begin, const jschar *limit,
size_t *size, const uint8_t **memory, intptr_t *handle);
typedef void
(* CloseAsmJSCacheEntryForReadOp)(HandleObject global, size_t size, const uint8_t *memory,
intptr_t handle);
(* CloseAsmJSCacheEntryForReadOp)(size_t size, const uint8_t *memory, intptr_t handle);
/*
* This callback represents a request by the JS engine to open for writing a
@ -4929,8 +4928,7 @@ typedef bool
const jschar *begin, const jschar *end,
size_t size, uint8_t **memory, intptr_t *handle);
typedef void
(* CloseAsmJSCacheEntryForWriteOp)(HandleObject global, size_t size, uint8_t *memory,
intptr_t handle);
(* CloseAsmJSCacheEntryForWriteOp)(size_t size, uint8_t *memory, intptr_t handle);
typedef js::Vector<char, 0, js::SystemAllocPolicy> BuildIdCharVector;

View File

@ -5514,8 +5514,7 @@ ShellOpenAsmJSCacheEntryForRead(HandleObject global, const jschar *begin, const
}
static void
ShellCloseAsmJSCacheEntryForRead(HandleObject global, size_t serializedSize, const uint8_t *memory,
intptr_t handle)
ShellCloseAsmJSCacheEntryForRead(size_t serializedSize, const uint8_t *memory, intptr_t handle)
{
// Undo the cookie adjustment done when opening the file.
memory -= sizeof(uint32_t);
@ -5603,8 +5602,7 @@ ShellOpenAsmJSCacheEntryForWrite(HandleObject global, bool installed,
}
static void
ShellCloseAsmJSCacheEntryForWrite(HandleObject global, size_t serializedSize, uint8_t *memory,
intptr_t handle)
ShellCloseAsmJSCacheEntryForWrite(size_t serializedSize, uint8_t *memory, intptr_t handle)
{
// Undo the cookie adjustment done when opening the file.
memory -= sizeof(uint32_t);