Changeset 46620 in webkit for trunk/JavaScriptCore/bytecode/StructureStubInfo.h
- Timestamp:
- Jul 30, 2009, 7:57:31 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/StructureStubInfo.h
r46618 r46620 34 34 #include "Structure.h" 35 35 36 37 36 namespace JSC { 38 37 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 53 38 struct StructureStubInfo { 54 StructureStubInfo(int accessType) 55 : accessType(accessType) 56 , seen(false) 39 StructureStubInfo(OpcodeID opcodeID) 40 : opcodeID(opcodeID) 57 41 { 58 42 } … … 60 44 void initGetByIdSelf(Structure* baseObjectStructure) 61 45 { 62 accessType = access_get_by_id_self;46 opcodeID = op_get_by_id_self; 63 47 64 48 u.getByIdSelf.baseObjectStructure = baseObjectStructure; … … 68 52 void initGetByIdProto(Structure* baseObjectStructure, Structure* prototypeStructure) 69 53 { 70 accessType = access_get_by_id_proto;54 opcodeID = op_get_by_id_proto; 71 55 72 56 u.getByIdProto.baseObjectStructure = baseObjectStructure; … … 79 63 void initGetByIdChain(Structure* baseObjectStructure, StructureChain* chain) 80 64 { 81 accessType = access_get_by_id_chain;65 opcodeID = op_get_by_id_chain; 82 66 83 67 u.getByIdChain.baseObjectStructure = baseObjectStructure; … … 90 74 void initGetByIdSelfList(PolymorphicAccessStructureList* structureList, int listSize) 91 75 { 92 accessType = access_get_by_id_self_list;76 opcodeID = op_get_by_id_self_list; 93 77 94 78 u.getByIdProtoList.structureList = structureList; … … 98 82 void initGetByIdProtoList(PolymorphicAccessStructureList* structureList, int listSize) 99 83 { 100 accessType = access_get_by_id_proto_list;84 opcodeID = op_get_by_id_proto_list; 101 85 102 86 u.getByIdProtoList.structureList = structureList; … … 108 92 void initPutByIdTransition(Structure* previousStructure, Structure* structure, StructureChain* chain) 109 93 { 110 accessType = access_put_by_id_transition;94 opcodeID = op_put_by_id_transition; 111 95 112 96 u.putByIdTransition.previousStructure = previousStructure; … … 122 106 void initPutByIdReplace(Structure* baseObjectStructure) 123 107 { 124 accessType = access_put_by_id_replace;108 opcodeID = op_put_by_id_replace; 125 109 126 110 u.putByIdReplace.baseObjectStructure = baseObjectStructure; … … 130 114 void deref(); 131 115 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; 145 117 union { 146 118 struct {
Note:
See TracChangeset
for help on using the changeset viewer.