Ignore:
Timestamp:
Oct 7, 2011, 3:11:51 PM (14 years ago)
Author:
[email protected]
Message:

Support string indexing in the DFG
https://bugs.webkit.org/show_bug.cgi?id=69671

Reviewed by Gavin Barraclough.

Emit code to support inline indexing of strings

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::compileGetByValOnString):

Shared code to perform string indexing.

  • dfg/DFGSpeculativeJIT.h:
  • dfg/DFGSpeculativeJIT32_64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

  • dfg/DFGSpeculativeJIT64.cpp:

(JSC::DFG::SpeculativeJIT::compile):

Use compileGetByValOnString if we predict that the base object
is a string in GetByVal.

  • runtime/JSString.h:

(JSC::JSString::offsetOfFiberCount):
(JSC::JSString::offsetOfValue):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r96980 r96983  
     12011-10-07  Oliver Hunt  <[email protected]>
     2
     3        Support string indexing in the DFG
     4        https://bugs.webkit.org/show_bug.cgi?id=69671
     5
     6        Reviewed by Gavin Barraclough.
     7
     8        Emit code to support inline indexing of strings
     9
     10        * dfg/DFGSpeculativeJIT.cpp:
     11        (JSC::DFG::SpeculativeJIT::compileGetByValOnString):
     12            Shared code to perform string indexing.
     13        * dfg/DFGSpeculativeJIT.h:
     14        * dfg/DFGSpeculativeJIT32_64.cpp:
     15        (JSC::DFG::SpeculativeJIT::compile):
     16        * dfg/DFGSpeculativeJIT64.cpp:
     17        (JSC::DFG::SpeculativeJIT::compile):
     18            Use compileGetByValOnString if we predict that the base object
     19            is a string in GetByVal.
     20        * runtime/JSString.h:
     21        (JSC::JSString::offsetOfFiberCount):
     22        (JSC::JSString::offsetOfValue):
     23
    1242011-10-07  Filip Pizlo  <[email protected]>
    225
Note: See TracChangeset for help on using the changeset viewer.