Ignore:
Timestamp:
Aug 20, 2014, 11:11:15 AM (11 years ago)
Author:
[email protected]
Message:

[Win] Assertion fails when running JSC stress tests.
https://bugs.webkit.org/show_bug.cgi?id=136103

Patch by [email protected] <[email protected]> on 2014-08-20
Reviewed by Darin Adler.

Use unsigned bitfield member instead of enum bitfield member to avoid negative values.

  • bytecode/CodeOrigin.h: Use unsigned bitfield member.

(JSC::InlineCallFrame::specializationKind): Compile fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/bytecode/CodeOrigin.h

    r171946 r172801  
    161161    BitVector capturedVars; // Indexed by the machine call frame's variable numbering.
    162162    signed stackOffset : 30;
    163     Kind kind : 2;
     163    unsigned kind : 2; // real type is Kind
    164164    bool isClosureCall : 1; // If false then we know that callee/scope are constants and the DFG won't treat them as variables, i.e. they have to be recovered manually.
    165165    VirtualRegister argumentsRegister; // This is only set if the code uses arguments. The unmodified arguments register follows the unmodifiedArgumentsRegister() convention (see CodeBlock.h).
     
    175175    }
    176176   
    177     CodeSpecializationKind specializationKind() const { return specializationKindFor(kind); }
     177    CodeSpecializationKind specializationKind() const { return specializationKindFor(static_cast<Kind>(kind)); }
    178178
    179179    JSFunction* calleeConstant() const
Note: See TracChangeset for help on using the changeset viewer.