Ignore:
Timestamp:
Jul 30, 2009, 7:57:31 PM (16 years ago)
Author:
[email protected]
Message:

2009-07-30 Gavin Barraclough <[email protected]>

Reviewed by NOBODY (build fix).

Temporarily revert r46618 since this is b0rking on Linux.

File:
1 edited

Legend:

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

    r46618 r46620  
    3434#include "Structure.h"
    3535
    36 
    3736namespace JSC {
    3837
    39     static const int access_get_by_id_self = 0;
    40     static const int access_get_by_id_proto = 1;
    41     static const int access_get_by_id_chain = 2;
    42     static const int access_get_by_id_self_list = 3;
    43     static const int access_get_by_id_proto_list = 4;
    44     static const int access_put_by_id_transition = 5;
    45     static const int access_put_by_id_replace = 6;
    46     static const int access_get_by_id = 7;
    47     static const int access_put_by_id = 8;
    48     static const int access_get_by_id_generic = 9;
    49     static const int access_put_by_id_generic = 10;
    50     static const int access_get_array_length = 11;
    51     static const int access_get_string_length = 12;
    52 
    5338    struct StructureStubInfo {
    54         StructureStubInfo(int accessType)
    55             : accessType(accessType)
    56             , seen(false)
     39        StructureStubInfo(OpcodeID opcodeID)
     40            : opcodeID(opcodeID)
    5741        {
    5842        }
     
    6044        void initGetByIdSelf(Structure* baseObjectStructure)
    6145        {
    62             accessType = access_get_by_id_self;
     46            opcodeID = op_get_by_id_self;
    6347
    6448            u.getByIdSelf.baseObjectStructure = baseObjectStructure;
     
    6852        void initGetByIdProto(Structure* baseObjectStructure, Structure* prototypeStructure)
    6953        {
    70             accessType = access_get_by_id_proto;
     54            opcodeID = op_get_by_id_proto;
    7155
    7256            u.getByIdProto.baseObjectStructure = baseObjectStructure;
     
    7963        void initGetByIdChain(Structure* baseObjectStructure, StructureChain* chain)
    8064        {
    81             accessType = access_get_by_id_chain;
     65            opcodeID = op_get_by_id_chain;
    8266
    8367            u.getByIdChain.baseObjectStructure = baseObjectStructure;
     
    9074        void initGetByIdSelfList(PolymorphicAccessStructureList* structureList, int listSize)
    9175        {
    92             accessType = access_get_by_id_self_list;
     76            opcodeID = op_get_by_id_self_list;
    9377
    9478            u.getByIdProtoList.structureList = structureList;
     
    9882        void initGetByIdProtoList(PolymorphicAccessStructureList* structureList, int listSize)
    9983        {
    100             accessType = access_get_by_id_proto_list;
     84            opcodeID = op_get_by_id_proto_list;
    10185
    10286            u.getByIdProtoList.structureList = structureList;
     
    10892        void initPutByIdTransition(Structure* previousStructure, Structure* structure, StructureChain* chain)
    10993        {
    110             accessType = access_put_by_id_transition;
     94            opcodeID = op_put_by_id_transition;
    11195
    11296            u.putByIdTransition.previousStructure = previousStructure;
     
    122106        void initPutByIdReplace(Structure* baseObjectStructure)
    123107        {
    124             accessType = access_put_by_id_replace;
     108            opcodeID = op_put_by_id_replace;
    125109   
    126110            u.putByIdReplace.baseObjectStructure = baseObjectStructure;
     
    130114        void deref();
    131115
    132         bool seenOnce()
    133         {
    134             return seen;
    135         }
    136 
    137         void setSeen()
    138         {
    139             seen = true;
    140         }
    141 
    142         int accessType : 31;
    143         int seen : 1;
    144 
     116        OpcodeID opcodeID;
    145117        union {
    146118            struct {
Note: See TracChangeset for help on using the changeset viewer.