Open
Bug 1356665
Opened 7 years ago
Updated 1 year ago
Method calls take a slow path in the interpreter
Categories
(Core :: JavaScript Engine, enhancement, P3)
Core
JavaScript Engine
Tracking
()
NEW
People
(Reporter: jorendorff, Unassigned)
Details
(Keywords: triage-deferred)
There's a fast path for JSOP_CALL when we're calling a scripted function. But it doesn't hit for functions that are defined as ES6+ methods: let obj = { method() {} }; obj.method(); // slow path when in interpreter Note the comment in the interpreter: /* Don't bother trying to fast-path calls to scripted non-constructors. */ if (!isFunction || !maybeFun->isInterpreted() || !maybeFun->isConstructor() || (!construct && maybeFun->isClassConstructor())) { (...slow path...) } The third test, maybeFun->isConstructor(), is the one that fails.
Updated•7 years ago
|
Keywords: triage-deferred
Priority: -- → P3
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•