Ignore:
Timestamp:
Jun 30, 2008, 10:45:21 PM (17 years ago)
Author:
[email protected]
Message:

2008-06-30 Geoffrey Garen <[email protected]>

Reviewed by Oliver Hunt.


Removed the "registerBase" abstraction. Since the register file never
reallocates, we can keep direct pointers into it, instead of
<registerBase, offset> tuples.


SunSpider says 0.8% faster.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/ExecState.cpp

    r34684 r34906  
    4040    , m_registerFile(0)
    4141    , m_scopeChain(globalScopeChain)
    42     , m_callFrameOffset(-1)
     42    , m_callFrame(0)
    4343{
    4444}
    4545
    46 ExecState::ExecState(ExecState* exec, RegisterFile* registerFile, ScopeChainNode* scopeChain, int callFrameOffset)
     46ExecState::ExecState(ExecState* exec, RegisterFile* registerFile, ScopeChainNode* scopeChain, Register* callFrame)
    4747    : m_globalObject(exec->m_globalObject)
    4848    , m_globalThisValue(exec->m_globalThisValue)
     
    5252    , m_registerFile(registerFile)
    5353    , m_scopeChain(scopeChain)
    54     , m_callFrameOffset(callFrameOffset)
     54    , m_callFrame(callFrame)
    5555{
    5656    ASSERT(!exec->m_exception);
Note: See TracChangeset for help on using the changeset viewer.