Changeset 61743 in webkit for trunk/JavaScriptCore/bytecode


Ignore:
Timestamp:
Jun 24, 2010, 12:24:56 AM (15 years ago)
Author:
[email protected]
Message:

Fix layout test failure

Reviewed by Gavin Barraclough.

We assume bytecodeOffset will always return a value > 1,
so we adjust the failure case to return 1 instead of 0.

  • bytecode/CodeBlock.h:

(JSC::CodeBlock::bytecodeOffset):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecode/CodeBlock.h

    r61588 r61743  
    353353        {
    354354            if (!reparseForExceptionInfoIfNecessary(callFrame))
    355                 return 0;
     355                return 1;
    356356            return binaryChop<CallReturnOffsetToBytecodeOffset, unsigned, getCallReturnOffset>(callReturnIndexVector().begin(), callReturnIndexVector().size(), getJITCode().offsetOf(returnAddress.value()))->bytecodeOffset;
    357357        }
Note: See TracChangeset for help on using the changeset viewer.