Closed Bug 596029 Opened 14 years ago Closed 14 years ago

js_GetPropertyHelper() called too many times for access-binary-trees.js

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 589398

People

(Reporter: n.nethercote, Assigned: n.nethercote)

References

Details

js_GetPropertyHelper() is called 42,101 times for access-binary-trees.js.  Almost all of them are due to this JM code:

JSBool JS_FASTCALL
stubs::NewObject(VMFrame &f, uint32 argc)
{
    JSContext *cx = f.cx;
    Value *vp = f.regs.sp - (argc + 2);

    JSObject *funobj = &vp[0].toObject();
    JS_ASSERT(funobj->isFunction());

    jsid id = ATOM_TO_JSID(cx->runtime->atomState.classPrototypeAtom);
    if (!funobj->getProperty(cx, id, &vp[1]))
        THROWV(JS_FALSE);


jorendorff says there should be some way to avoid this -- a PIC or something.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.