Changeset 155418 in webkit for trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
- Timestamp:
- Sep 9, 2013, 11:01:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
r155415 r155418 215 215 216 216 // Must be a local. 217 return getLocal((unsigned)operand); 218 } 217 return getLocal(operand); 218 } 219 219 220 Node* get(int operand) 220 221 { … … 228 229 return getDirect(m_inlineStackTop->remapOperand(operand)); 229 230 } 231 230 232 enum SetMode { NormalSet, SetOnEntry }; 231 233 void setDirect(int operand, Node* value, SetMode setMode = NormalSet) … … 238 240 239 241 // Must be a local. 240 setLocal((unsigned)operand, value, setMode); 241 } 242 setLocal(operand, value, setMode); 243 } 244 242 245 void set(int operand, Node* value, SetMode setMode = NormalSet) 243 246 { … … 260 263 261 264 // Used in implementing get/set, above, where the operand is a local variable. 262 Node* getLocal( unsignedoperand)265 Node* getLocal(int operand) 263 266 { 264 267 unsigned local = operandToLocal(operand); … … 297 300 return node; 298 301 } 299 void setLocal(unsigned operand, Node* value, SetMode setMode = NormalSet) 302 303 void setLocal(int operand, Node* value, SetMode setMode = NormalSet) 300 304 { 301 305 unsigned local = operandToLocal(operand); … … 2090 2094 2091 2095 case op_inc: { 2092 unsignedsrcDst = currentInstruction[1].u.operand;2096 int srcDst = currentInstruction[1].u.operand; 2093 2097 Node* op = get(srcDst); 2094 2098 set(srcDst, makeSafe(addToGraph(ArithAdd, op, one()))); … … 2097 2101 2098 2102 case op_dec: { 2099 unsignedsrcDst = currentInstruction[1].u.operand;2103 int srcDst = currentInstruction[1].u.operand; 2100 2104 Node* op = get(srcDst); 2101 2105 set(srcDst, makeSafe(addToGraph(ArithSub, op, one()))); … … 2997 3001 2998 3002 case op_resolve_scope: { 2999 unsigneddst = currentInstruction[1].u.operand;3003 int dst = currentInstruction[1].u.operand; 3000 3004 ResolveType resolveType = static_cast<ResolveType>(currentInstruction[3].u.operand); 3001 3005 unsigned depth = currentInstruction[4].u.operand; … … 3024 3028 3025 3029 case op_get_from_scope: { 3026 unsigneddst = currentInstruction[1].u.operand;3030 int dst = currentInstruction[1].u.operand; 3027 3031 unsigned scope = currentInstruction[2].u.operand; 3028 3032 unsigned identifierNumber = m_inlineStackTop->m_identifierRemap[currentInstruction[3].u.operand];
Note:
See TracChangeset
for help on using the changeset viewer.