Changeset 50254 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.h
- Timestamp:
- Oct 28, 2009, 6:25:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.h
r49734 r50254 62 62 }; 63 63 64 struct ForInContext { 65 RefPtr<RegisterID> expectedSubscriptRegister; 66 RefPtr<RegisterID> iterRegister; 67 RefPtr<RegisterID> indexRegister; 68 RefPtr<RegisterID> propertyRegister; 69 }; 70 64 71 class BytecodeGenerator : public FastAllocBase { 65 72 public: … … 332 339 void popFinallyContext(); 333 340 341 void pushOptimisedForIn(RegisterID* expectedBase, RegisterID* iter, RegisterID* index, RegisterID* propertyRegister) 342 { 343 ForInContext context = { expectedBase, iter, index, propertyRegister }; 344 m_forInContextStack.append(context); 345 } 346 347 void popOptimisedForIn() 348 { 349 m_forInContextStack.removeLast(); 350 } 351 334 352 LabelScope* breakTarget(const Identifier&); 335 353 LabelScope* continueTarget(const Identifier&); … … 468 486 Vector<ControlFlowContext> m_scopeContextStack; 469 487 Vector<SwitchInfo> m_switchContextStack; 488 Vector<ForInContext> m_forInContextStack; 470 489 471 490 int m_nextGlobalIndex;
Note:
See TracChangeset
for help on using the changeset viewer.