Changeset 36317 in webkit for trunk/JavaScriptCore/VM/Opcode.h


Ignore:
Timestamp:
Sep 10, 2008, 2:23:35 AM (17 years ago)
Author:
[email protected]
Message:

Add optimised access to known properties on the global object.

Reviewed by Maciej Stachowiak

Improve cross scope access to the global object by emitting
code to access it directly rather than by walking the scope chain.

This is a 0.8% win in SunSpider and a 1.7% win in the v8 benchmarks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Opcode.h

    r36263 r36317  
    8585        macro(op_get_scoped_var) \
    8686        macro(op_put_scoped_var) \
     87        macro(op_get_global_var) \
     88        macro(op_put_global_var) \
    8789        macro(op_resolve_base) \
    8890        macro(op_resolve_with_base) \
Note: See TracChangeset for help on using the changeset viewer.