Changeset 46618 in webkit for trunk/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Jul 30, 2009, 7:20:11 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.h
r46598 r46618 37 37 #include "JumpTable.h" 38 38 #include "Nodes.h" 39 #include "PtrAndFlags.h" 39 40 #include "RegExp.h" 40 41 #include "UString.h" … … 54 55 55 56 namespace JSC { 57 58 enum HasSeenShouldRepatch { 59 hasSeenShouldRepatch 60 }; 56 61 57 62 class ExecState; … … 106 111 CodeLocationDataLabelPtr hotPathBegin; 107 112 CodeLocationNearCall hotPathOther; 108 CodeBlock*ownerCodeBlock;113 PtrAndFlags<CodeBlock, HasSeenShouldRepatch> ownerCodeBlock; 109 114 CodeBlock* callee; 110 115 unsigned position; … … 112 117 void setUnlinked() { callee = 0; } 113 118 bool isLinked() { return callee; } 119 120 bool seenOnce() 121 { 122 return ownerCodeBlock.isFlagSet(hasSeenShouldRepatch); 123 } 124 125 void setSeen() 126 { 127 ownerCodeBlock.setFlag(hasSeenShouldRepatch); 128 } 114 129 }; 115 130 … … 121 136 } 122 137 138 bool seenOnce() 139 { 140 return cachedPrototypeStructure.isFlagSet(hasSeenShouldRepatch); 141 } 142 143 void setSeen() 144 { 145 cachedPrototypeStructure.setFlag(hasSeenShouldRepatch); 146 } 147 123 148 CodeLocationCall callReturnLocation; 124 149 CodeLocationDataLabelPtr structureLabel; 125 150 Structure* cachedStructure; 126 Structure*cachedPrototypeStructure;151 PtrAndFlags<Structure, HasSeenShouldRepatch> cachedPrototypeStructure; 127 152 }; 128 153
Note:
See TracChangeset
for help on using the changeset viewer.