Closed Bug 851621 Opened 13 years ago Closed 2 years ago

6 seconds spent in AliasedNameToSlot (from EmitAliasedVarOp) while loading large JS codebase

Categories

(Core :: JavaScript Engine, defect)

x86_64
Windows 7
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: vlad, Unassigned)

References

Details

We throw the latest VTune at the the monster GDC demo codebase. Out of 15s of CompileScript() time, 6 seconds of it is spent on line 895 (maybe 894) in BytecodeEmitter.cpp calling AliasedNameToSlot. This seems bad, potentially low hanging fruit?
We could probably shave off a few cycles (that code was written for simplicity, not performance), but, roughly, the reason we're spending so much time in there is because asm.js contains a huge number of upvar references (every use of the heap or global variable). Fortunately, bug 851421 will make this all go away for asm.js code, so I'm not sure if we need to worry about this.
Ah, right! Ok, marking it as dependant.
Depends on: 851421
Assignee: general → nobody
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.