Ignore:
Timestamp:
Nov 15, 2008, 2:33:58 PM (17 years ago)
Author:
[email protected]
Message:

2008-11-15 Geoffrey Garen <[email protected]>

Reviewed by Sam Weinig.


Renamed LabelID to Label, Label::isForwardLabel to Label::isForward.

  • VM/LabelID.h: (JSC::Label::Label): (JSC::Label::isForward):
  • bytecompiler/CodeGenerator.cpp: (JSC::BytecodeGenerator::newLabel): (JSC::BytecodeGenerator::emitLabel): (JSC::BytecodeGenerator::emitJump): (JSC::BytecodeGenerator::emitJumpIfTrue): (JSC::BytecodeGenerator::emitJumpIfFalse): (JSC::BytecodeGenerator::pushFinallyContext): (JSC::BytecodeGenerator::emitComplexJumpScopes): (JSC::BytecodeGenerator::emitJumpScopes): (JSC::BytecodeGenerator::emitNextPropertyName): (JSC::BytecodeGenerator::emitCatch): (JSC::BytecodeGenerator::emitJumpSubroutine): (JSC::prepareJumpTableForImmediateSwitch): (JSC::prepareJumpTableForCharacterSwitch): (JSC::prepareJumpTableForStringSwitch): (JSC::BytecodeGenerator::endSwitch):
  • bytecompiler/CodeGenerator.h:
  • bytecompiler/LabelScope.h: (JSC::LabelScope::LabelScope): (JSC::LabelScope::breakTarget): (JSC::LabelScope::continueTarget):
  • parser/Nodes.cpp: (JSC::LogicalOpNode::emitBytecode): (JSC::ConditionalNode::emitBytecode): (JSC::IfNode::emitBytecode): (JSC::IfElseNode::emitBytecode): (JSC::DoWhileNode::emitBytecode): (JSC::WhileNode::emitBytecode): (JSC::ForNode::emitBytecode): (JSC::ForInNode::emitBytecode): (JSC::ReturnNode::emitBytecode): (JSC::CaseBlockNode::emitBytecodeForBlock): (JSC::TryNode::emitBytecode):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecompiler/CodeGenerator.h

    r38428 r38430  
    5252
    5353    struct FinallyContext {
    54         LabelID* finallyAddr;
     54        Label* finallyAddr;
    5555        RegisterID* retAddrDst;
    5656    };
     
    151151
    152152        PassRefPtr<LabelScope> newLabelScope(LabelScope::Type, const Identifier* = 0);
    153         PassRefPtr<LabelID> newLabel();
     153        PassRefPtr<Label> newLabel();
    154154
    155155        // The emitNode functions are just syntactic sugar for calling
     
    282282        RegisterID* emitConstruct(RegisterID* dst, RegisterID* func, ArgumentsNode*, unsigned divot, unsigned startOffset, unsigned endOffset);
    283283
    284         PassRefPtr<LabelID> emitLabel(LabelID*);
    285         PassRefPtr<LabelID> emitJump(LabelID* target);
    286         PassRefPtr<LabelID> emitJumpIfTrue(RegisterID* cond, LabelID* target);
    287         PassRefPtr<LabelID> emitJumpIfFalse(RegisterID* cond, LabelID* target);
    288         PassRefPtr<LabelID> emitJumpScopes(LabelID* target, int targetScopeDepth);
    289 
    290         PassRefPtr<LabelID> 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*);
    291291        void emitSubroutineReturn(RegisterID* retAddrSrc);
    292292
    293293        RegisterID* emitGetPropertyNames(RegisterID* dst, RegisterID* base) { return emitUnaryOp(op_get_pnames, dst, base, ResultType::unknown()); }
    294         RegisterID* emitNextPropertyName(RegisterID* dst, RegisterID* iter, LabelID* target);
    295 
    296         RegisterID* emitCatch(RegisterID*, LabelID* start, LabelID* end);
     294        RegisterID* emitNextPropertyName(RegisterID* dst, RegisterID* iter, Label* target);
     295
     296        RegisterID* emitCatch(RegisterID*, Label* start, Label* end);
    297297        void emitThrow(RegisterID* exc) { emitUnaryNoDstOp(op_throw, exc); }
    298298        RegisterID* emitNewError(RegisterID* dst, ErrorType type, JSValue* message);
     
    306306        int scopeDepth() { return m_dynamicScopeDepth + m_finallyDepth; }
    307307
    308         void pushFinallyContext(LabelID* target, RegisterID* returnAddrDst);
     308        void pushFinallyContext(Label* target, RegisterID* returnAddrDst);
    309309        void popFinallyContext();
    310310
     
    313313
    314314        void beginSwitch(RegisterID*, SwitchInfo::SwitchType);
    315         void endSwitch(uint32_t clauseCount, RefPtr<LabelID>*, 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);
    316316
    317317        CodeType codeType() const { return m_codeType; }
     
    324324        void rewindUnaryOp();
    325325
    326         PassRefPtr<LabelID> emitComplexJumpScopes(LabelID* target, ControlFlowContext* topScope, ControlFlowContext* bottomScope);
     326        PassRefPtr<Label> emitComplexJumpScopes(Label* target, ControlFlowContext* topScope, ControlFlowContext* bottomScope);
    327327
    328328        struct JSValueHashTraits : HashTraits<JSValue*> {
     
    424424        SegmentedVector<RegisterID, 512> m_globals;
    425425        SegmentedVector<LabelScope, 256> m_labelScopes;
    426         SegmentedVector<LabelID, 256> m_labels;
     426        SegmentedVector<Label, 256> m_labels;
    427427        RefPtr<RegisterID> m_lastConstant;
    428428        int m_finallyDepth;
Note: See TracChangeset for help on using the changeset viewer.