Changeset 46879 in webkit for trunk/JavaScriptCore/bytecode/CodeBlock.h
- Timestamp:
- Aug 6, 2009, 8:05:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.h
r46831 r46879 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 … … 117 132 MethodCallLinkInfo() 118 133 : cachedStructure(0) 119 , cachedPrototypeStructure(0) 120 { 134 { 135 } 136 137 bool seenOnce() 138 { 139 return cachedPrototypeStructure.isFlagSet(hasSeenShouldRepatch); 140 } 141 142 void setSeen() 143 { 144 cachedPrototypeStructure.setFlag(hasSeenShouldRepatch); 121 145 } 122 146 … … 124 148 CodeLocationDataLabelPtr structureLabel; 125 149 Structure* cachedStructure; 126 Structure*cachedPrototypeStructure;150 PtrAndFlags<Structure, HasSeenShouldRepatch> cachedPrototypeStructure; 127 151 }; 128 152
Note:
See TracChangeset
for help on using the changeset viewer.