Ignore:
Timestamp:
Jul 17, 2008, 9:00:28 PM (17 years ago)
Author:
[email protected]
Message:

2008-07-17 Geoffrey Garen <[email protected]>

Reviewed by Oliver Hunt.


Next step toward putting doubles in registers: Store constant pool
entries as registers, not JSValue*s.


SunSpider reports no change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/CodeGenerator.cpp

    r35230 r35231  
    522522unsigned CodeGenerator::addConstant(JSValue* v)
    523523{
    524     pair<JSValueMap::iterator, bool> result = m_jsValueMap.add(v, m_codeBlock->jsValues.size());
     524    pair<JSValueMap::iterator, bool> result = m_jsValueMap.add(v, m_codeBlock->registers.size());
    525525    if (result.second) // new entry
    526         m_codeBlock->jsValues.append(v);
     526        m_codeBlock->registers.append(v);
    527527
    528528    return result.first->second;
Note: See TracChangeset for help on using the changeset viewer.