Bug 1026477: Make EvaluateInEnv static to Debugger.cpp; JSD1 no longer uses it. r=shu

This commit is contained in:
Jim Blandy 2014-12-18 16:06:38 -08:00
parent 1963f6d4d8
commit 487c32529c
2 changed files with 4 additions and 9 deletions

View File

@ -5907,10 +5907,10 @@ DebuggerFrame_setOnPop(JSContext *cx, unsigned argc, Value *vp)
* environment; either way, |frame|'s scope is where newly declared variables
* go. In this case, |frame| must have a computed 'this' value, equal to |thisv|.
*/
bool
js::EvaluateInEnv(JSContext *cx, Handle<Env*> env, HandleValue thisv, AbstractFramePtr frame,
jsbytecode *pc, mozilla::Range<const char16_t> chars, const char *filename,
unsigned lineno, MutableHandleValue rval)
static bool
EvaluateInEnv(JSContext *cx, Handle<Env*> env, HandleValue thisv, AbstractFramePtr frame,
jsbytecode *pc, mozilla::Range<const char16_t> chars, const char *filename,
unsigned lineno, MutableHandleValue rval)
{
assertSameCompartment(cx, env, frame);
MOZ_ASSERT_IF(frame, thisv.get() == frame.thisValue());

View File

@ -910,11 +910,6 @@ Debugger::onLogAllocationSite(JSContext *cx, HandleSavedFrame frame, int64_t whe
return Debugger::slowPathOnLogAllocationSite(cx, frame, when, *dbgs);
}
extern bool
EvaluateInEnv(JSContext *cx, Handle<Env*> env, HandleValue thisv, AbstractFramePtr frame,
jsbytecode *pc, mozilla::Range<const char16_t> chars, const char *filename,
unsigned lineno, MutableHandleValue rval);
bool ReportObjectRequired(JSContext *cx);
} /* namespace js */