Ignore:
Timestamp:
Sep 6, 2008, 10:44:58 PM (17 years ago)
Author:
[email protected]
Message:

Merge squirrelfish-extreme to trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSImmediate.h

    r35830 r36244  
    8383    class JSImmediate {
    8484    private:
     85        friend class CTI; // Whooo!
     86   
    8587        static const uintptr_t TagMask           = 0x3u; // primary tag is 2 bits long
    8688        static const uintptr_t TagBitTypeInteger = 0x1u; // bottom bit set indicates integer, this dominates the following bit
     
    231233        static JSValue* undefinedImmediate();
    232234        static JSValue* nullImmediate();
     235        static JSValue* zeroImmediate();
     236        static JSValue* oneImmediate();
    233237
    234238        static JSValue* impossibleValue();
     
    286290    ALWAYS_INLINE JSValue* JSImmediate::undefinedImmediate() { return makeUndefined(); }
    287291    ALWAYS_INLINE JSValue* JSImmediate::nullImmediate() { return makeNull(); }
     292    ALWAYS_INLINE JSValue* JSImmediate::zeroImmediate() { return makeInt(0); }
     293    ALWAYS_INLINE JSValue* JSImmediate::oneImmediate() { return makeInt(1); }
    288294
    289295    // This value is impossible because 0x4 is not a valid pointer but a tag of 0 would indicate non-immediate
Note: See TracChangeset for help on using the changeset viewer.