Ignore:
Timestamp:
Dec 1, 2015, 5:37:19 PM (10 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r192914.
https://bugs.webkit.org/show_bug.cgi?id=151734

JSC tests for this change are failing on 32 and 64-bit bots
(Requested by ryanhaddad on #webkit).

Reverted changeset:

"[ES6] Implement LLInt/Baseline Support for ES6 Generators and
enable this feature"
https://bugs.webkit.org/show_bug.cgi?id=150792
http://trac.webkit.org/changeset/192914

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/BytecodeLivenessAnalysis.cpp

    r192914 r192935  
    9999// exception handlers in the uses.
    100100template<typename UseFunctor, typename DefFunctor>
    101 static void stepOverInstruction(CodeBlock* codeBlock, BytecodeBasicBlock* block, Vector<std::unique_ptr<BytecodeBasicBlock>>& basicBlocks, unsigned bytecodeOffset, const UseFunctor& use, const DefFunctor& def)
     101static void stepOverInstruction(CodeBlock* codeBlock, Vector<std::unique_ptr<BytecodeBasicBlock>>& basicBlocks, unsigned bytecodeOffset, const UseFunctor& use, const DefFunctor& def)
    102102{
    103103    // This abstractly execute the instruction in reverse. Instructions logically first use operands and
     
    117117   
    118118    computeDefsForBytecodeOffset(
    119         codeBlock, block, bytecodeOffset,
     119        codeBlock, bytecodeOffset,
    120120        [&] (CodeBlock* codeBlock, Instruction*, OpcodeID, int operand) {
    121121            if (isValidRegisterForLiveness(codeBlock, operand))
     
    124124
    125125    computeUsesForBytecodeOffset(
    126         codeBlock, block, bytecodeOffset,
     126        codeBlock, bytecodeOffset,
    127127        [&] (CodeBlock* codeBlock, Instruction*, OpcodeID, int operand) {
    128128            if (isValidRegisterForLiveness(codeBlock, operand))
    129129                use(VirtualRegister(operand).toLocal());
    130130        });
    131 
     131       
    132132    // If we have an exception handler, we want the live-in variables of the
    133133    // exception handler block to be included in the live-in of this particular bytecode.
     
    139139}
    140140
    141 static void stepOverInstruction(CodeBlock* codeBlock, BytecodeBasicBlock* block, Vector<std::unique_ptr<BytecodeBasicBlock>>& basicBlocks, unsigned bytecodeOffset, FastBitVector& out)
     141static void stepOverInstruction(CodeBlock* codeBlock, Vector<std::unique_ptr<BytecodeBasicBlock>>& basicBlocks, unsigned bytecodeOffset, FastBitVector& out)
    142142{
    143143    stepOverInstruction(
    144         codeBlock, block, basicBlocks, bytecodeOffset,
     144        codeBlock, basicBlocks, bytecodeOffset,
    145145        [&] (unsigned bitIndex) {
    146146            // This is the use functor, so we set the bit.
     
    165165            break;
    166166       
    167         stepOverInstruction(codeBlock, block, basicBlocks, bytecodeOffset, out);
     167        stepOverInstruction(codeBlock, basicBlocks, bytecodeOffset, out);
    168168    }
    169169
     
    181181{
    182182    UnlinkedCodeBlock* unlinkedCodeBlock = m_codeBlock->unlinkedCodeBlock();
    183     unsigned numberOfVariables = unlinkedCodeBlock->m_numCalleeLocals;
     183    unsigned numberOfVariables = unlinkedCodeBlock->m_numCalleeRegisters;
    184184
    185185    for (unsigned i = 0; i < m_basicBlocks.size(); i++) {
     
    249249        for (unsigned i = block->bytecodeOffsets().size(); i--;) {
    250250            unsigned bytecodeOffset = block->bytecodeOffsets()[i];
    251             stepOverInstruction(m_codeBlock, block, m_basicBlocks, bytecodeOffset, out);
     251            stepOverInstruction(m_codeBlock, m_basicBlocks, bytecodeOffset, out);
    252252            result.m_map[bytecodeOffset] = out;
    253253        }
     
    272272            unsigned bytecodeOffset = block->bytecodeOffsets()[i];
    273273            stepOverInstruction(
    274                 m_codeBlock, block, m_basicBlocks, bytecodeOffset,
     274                m_codeBlock, m_basicBlocks, bytecodeOffset,
    275275                [&] (unsigned index) {
    276276                    // This is for uses.
Note: See TracChangeset for help on using the changeset viewer.