mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset f7fee43555d8 (bug 822831) for bustage.
This commit is contained in:
parent
f5d385cc2b
commit
337274748e
@ -326,7 +326,7 @@ JS_ClearAllWatchPoints(JSContext *cx)
|
||||
/************************************************************************/
|
||||
|
||||
JS_PUBLIC_API(unsigned)
|
||||
JS_PCToLineNumber(JSContext *cx, RawScript script, jsbytecode *pc)
|
||||
JS_PCToLineNumber(JSContext *cx, JSScript *script, jsbytecode *pc)
|
||||
{
|
||||
return js::PCToLineNumber(script, pc);
|
||||
}
|
||||
|
@ -141,9 +141,8 @@ JS_ClearAllWatchPoints(JSContext *cx);
|
||||
|
||||
/************************************************************************/
|
||||
|
||||
// RawScript because this needs to be callable from a signal handler
|
||||
extern JS_PUBLIC_API(unsigned)
|
||||
JS_PCToLineNumber(JSContext *cx, RawScript script, jsbytecode *pc);
|
||||
JS_PCToLineNumber(JSContext *cx, JSScript *script, jsbytecode *pc);
|
||||
|
||||
extern JS_PUBLIC_API(jsbytecode *)
|
||||
JS_LineNumberToPC(JSContext *cx, JSScript *script, unsigned lineno);
|
||||
|
@ -677,10 +677,8 @@ SetRuntimeProfilingStack(JSRuntime *rt, ProfileEntry *stack, uint32_t *size,
|
||||
JS_FRIEND_API(void)
|
||||
EnableRuntimeProfilingStack(JSRuntime *rt, bool enabled);
|
||||
|
||||
// Use RawScript rather than UnrootedScript because it may be called from a
|
||||
// signal handler
|
||||
JS_FRIEND_API(jsbytecode*)
|
||||
ProfilingGetPC(JSRuntime *rt, RawScript script, void *ip);
|
||||
ProfilingGetPC(JSRuntime *rt, JSScript *script, void *ip);
|
||||
|
||||
#ifdef JS_THREADSAFE
|
||||
JS_FRIEND_API(void *)
|
||||
|
@ -223,10 +223,8 @@ JMChunkInfo::JMChunkInfo(mjit::JSActiveFrame *frame,
|
||||
chunk(chunk)
|
||||
{}
|
||||
|
||||
// Use RawScript instead of UnrootedScript because this may be called from a
|
||||
// signal handler
|
||||
jsbytecode*
|
||||
SPSProfiler::ipToPC(RawScript script, size_t ip)
|
||||
SPSProfiler::ipToPC(UnrootedScript script, size_t ip)
|
||||
{
|
||||
if (!jminfo.initialized())
|
||||
return NULL;
|
||||
|
@ -234,7 +234,7 @@ class SPSProfiler
|
||||
mjit::JITChunk *chunk, void* address);
|
||||
bool registerICCode(mjit::JITChunk *chunk, UnrootedScript script, jsbytecode* pc,
|
||||
void *start, size_t size);
|
||||
jsbytecode *ipToPC(RawScript script, size_t ip);
|
||||
jsbytecode *ipToPC(UnrootedScript script, size_t ip);
|
||||
|
||||
private:
|
||||
JMChunkInfo *registerScript(mjit::JSActiveFrame *frame,
|
||||
@ -243,7 +243,7 @@ class SPSProfiler
|
||||
void unregisterScript(UnrootedScript script, mjit::JITChunk *chunk);
|
||||
public:
|
||||
#else
|
||||
jsbytecode *ipToPC(RawScript script, size_t ip) { return NULL; }
|
||||
jsbytecode *ipToPC(UnrootedScript script, size_t ip) { return NULL; }
|
||||
#endif
|
||||
|
||||
void setProfilingStack(ProfileEntry *stack, uint32_t *size, uint32_t max);
|
||||
|
Loading…
Reference in New Issue
Block a user