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