Closed Bug 1723698 Opened 3 years ago Closed 3 years ago

Optimize the object allocation code

Categories

(Core :: JavaScript Engine, task, P3)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: jandem, Assigned: jandem)

References

Details

Each time we allocate an object from C++ code, we go through a lot of effort to figure out the AllocKind, prototype, Shape etc to use for the new object. The NewObjectCache mitigates this a little but it's not very robust and has its own issues.

Furthermore, in NewObject we have special code for JSFunction and TypedObject. These really want their own optimized allocation path instead of slowing down the other cases.

We should experiment with a faster allocation path for JSFunction, ArrayObject, etc based on the shape we can cache on the global.

Depends on: 1723715
Depends on: 1724919
Depends on: 1725348
Depends on: 1727328
Depends on: 1728123
Depends on: 1728565
Depends on: 1729288
Depends on: 1729867
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.