Last Comment Bug 637888 - TI: optimize access to globals with singleton TypeObjects
: TI: optimize access to globals with singleton TypeObjects
Status: RESOLVED FIXED
:
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: unspecified
: All All
: -- normal (vote)
: ---
Assigned To: Jan de Mooij [:jandem]
:
Mentors:
Depends on:
Blocks: 619423
  Show dependency treegraph
 
Reported: 2011-03-01 14:35 PST by Jan de Mooij [:jandem]
Modified: 2011-04-19 10:23 PDT (History)
5 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Jan de Mooij [:jandem] 2011-03-01 14:35:24 PST
Bug 621961 will inline some common builtins, but to make Math.abs(x) as fast as abs(x) we still have to optimize the getgname "Math"

Talked about this with bhackett on IRC, we can reuse the singleton JSObject* introduced by 621961. getgname can then push a frame entry with constant value (and not generate any code)
Comment 1 Jan de Mooij [:jandem] 2011-04-19 10:23:01 PDT
Done as part of some other bugs.

Note You need to log in before you can comment on or make changes to this bug.