Changeset 38430 in webkit for trunk/JavaScriptCore/bytecompiler/CodeGenerator.h
- Timestamp:
- Nov 15, 2008, 2:33:58 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/CodeGenerator.h
r38428 r38430 52 52 53 53 struct FinallyContext { 54 Label ID* finallyAddr;54 Label* finallyAddr; 55 55 RegisterID* retAddrDst; 56 56 }; … … 151 151 152 152 PassRefPtr<LabelScope> newLabelScope(LabelScope::Type, const Identifier* = 0); 153 PassRefPtr<Label ID> newLabel();153 PassRefPtr<Label> newLabel(); 154 154 155 155 // The emitNode functions are just syntactic sugar for calling … … 282 282 RegisterID* emitConstruct(RegisterID* dst, RegisterID* func, ArgumentsNode*, unsigned divot, unsigned startOffset, unsigned endOffset); 283 283 284 PassRefPtr<Label ID> emitLabel(LabelID*);285 PassRefPtr<Label ID> emitJump(LabelID* target);286 PassRefPtr<Label ID> emitJumpIfTrue(RegisterID* cond, LabelID* target);287 PassRefPtr<Label ID> emitJumpIfFalse(RegisterID* cond, LabelID* target);288 PassRefPtr<Label ID> emitJumpScopes(LabelID* target, int targetScopeDepth);289 290 PassRefPtr<Label ID> emitJumpSubroutine(RegisterID* retAddrDst, LabelID*);284 PassRefPtr<Label> emitLabel(Label*); 285 PassRefPtr<Label> emitJump(Label* target); 286 PassRefPtr<Label> emitJumpIfTrue(RegisterID* cond, Label* target); 287 PassRefPtr<Label> emitJumpIfFalse(RegisterID* cond, Label* target); 288 PassRefPtr<Label> emitJumpScopes(Label* target, int targetScopeDepth); 289 290 PassRefPtr<Label> emitJumpSubroutine(RegisterID* retAddrDst, Label*); 291 291 void emitSubroutineReturn(RegisterID* retAddrSrc); 292 292 293 293 RegisterID* emitGetPropertyNames(RegisterID* dst, RegisterID* base) { return emitUnaryOp(op_get_pnames, dst, base, ResultType::unknown()); } 294 RegisterID* emitNextPropertyName(RegisterID* dst, RegisterID* iter, Label ID* target);295 296 RegisterID* emitCatch(RegisterID*, Label ID* start, LabelID* end);294 RegisterID* emitNextPropertyName(RegisterID* dst, RegisterID* iter, Label* target); 295 296 RegisterID* emitCatch(RegisterID*, Label* start, Label* end); 297 297 void emitThrow(RegisterID* exc) { emitUnaryNoDstOp(op_throw, exc); } 298 298 RegisterID* emitNewError(RegisterID* dst, ErrorType type, JSValue* message); … … 306 306 int scopeDepth() { return m_dynamicScopeDepth + m_finallyDepth; } 307 307 308 void pushFinallyContext(Label ID* target, RegisterID* returnAddrDst);308 void pushFinallyContext(Label* target, RegisterID* returnAddrDst); 309 309 void popFinallyContext(); 310 310 … … 313 313 314 314 void beginSwitch(RegisterID*, SwitchInfo::SwitchType); 315 void endSwitch(uint32_t clauseCount, RefPtr<Label ID>*, ExpressionNode**, LabelID* defaultLabel, int32_t min, int32_t range);315 void endSwitch(uint32_t clauseCount, RefPtr<Label>*, ExpressionNode**, Label* defaultLabel, int32_t min, int32_t range); 316 316 317 317 CodeType codeType() const { return m_codeType; } … … 324 324 void rewindUnaryOp(); 325 325 326 PassRefPtr<Label ID> emitComplexJumpScopes(LabelID* target, ControlFlowContext* topScope, ControlFlowContext* bottomScope);326 PassRefPtr<Label> emitComplexJumpScopes(Label* target, ControlFlowContext* topScope, ControlFlowContext* bottomScope); 327 327 328 328 struct JSValueHashTraits : HashTraits<JSValue*> { … … 424 424 SegmentedVector<RegisterID, 512> m_globals; 425 425 SegmentedVector<LabelScope, 256> m_labelScopes; 426 SegmentedVector<Label ID, 256> m_labels;426 SegmentedVector<Label, 256> m_labels; 427 427 RefPtr<RegisterID> m_lastConstant; 428 428 int m_finallyDepth;
Note:
See TracChangeset
for help on using the changeset viewer.