Ignore:
Timestamp:
Dec 10, 2007, 9:47:41 PM (18 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

Reviewed by Sam Weinig.

Split this:


FunctionBodyNode


|

ProgramNode


into this:


ScopeNode


| | |

FunctionBodyNode ProgramNode EvalNode

in preparation for specializing each class more while optimizing global
variable access.


Also removed some cruft from the FunctionBodyNode interface to simplify
things.


SunSpider says this patch is a .8% speedup, which seems reasonable,
since it eliminates a few branches and adds KJS_FAST_CALL in a few
places.


Layout tests and JS tests pass. Also, this baby builds on Windows! (Qt
mileage may vary...)

WebCore:

Reviewed by Sam Weinig.

Updated for rename in JavaScriptCore.

  • bridge/mac/WebCoreScriptDebugger.mm: (-[WebCoreScriptCallFrame scopeChain]): (-[WebCoreScriptCallFrame functionName]): (-[WebCoreScriptCallFrame evaluateWebScript:]):

WebKit/win:

Reviewed by Sam Weinig.

Updated for rename in JavaScriptCore.

  • WebScriptCallFrame.cpp: (WebScriptCallFrame::functionName): (WebScriptCallFrame::valueByEvaluatingJavaScriptFromString):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r28605 r28608  
    202202__ZN3KJS8DebuggerC2Ev
    203203__ZN3KJS8DebuggerD2Ev
     204__ZN3KJS8EvalNodeC1EPN3WTF6VectorINS1_6RefPtrINS_13StatementNodeEEELm0EEE
    204205__ZN3KJS8JSObject11hasInstanceEPNS_9ExecStateEPNS_7JSValueE
    205206__ZN3KJS8JSObject12removeDirectERKNS_10IdentifierE
     
    230231__ZN3KJS9Collector7protectEPNS_7JSValueE
    231232__ZN3KJS9Collector9unprotectEPNS_7JSValueE
    232 __ZN3KJS9ExecStateC1EPNS_14JSGlobalObjectEPNS_8JSObjectEPNS_16FunctionBodyNodeENS_8CodeTypeEPS0_S8_PNS_11FunctionImpEPKNS_4ListE
     233__ZN3KJS9ExecStateC1EPNS_14JSGlobalObjectEPNS_8JSObjectEPNS_9ScopeNodeENS_8CodeTypeEPS0_S8_PNS_11FunctionImpEPKNS_4ListE
    233234__ZN3KJS9ExecStateD1Ev
    234235__ZN3KJSeqERKNS_7UStringEPKc
Note: See TracChangeset for help on using the changeset viewer.