Changeset 39070 in webkit for trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.h
- Timestamp:
- Dec 6, 2008, 2:01:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecompiler/BytecodeGenerator.h
r38930 r39070 141 141 RegisterID* destinationForAssignResult(RegisterID* dst) 142 142 { 143 if (dst && dst != ignoredResult() && m_codeBlock->needsFullScopeChain )143 if (dst && dst != ignoredResult() && m_codeBlock->needsFullScopeChain()) 144 144 return dst->isTemporary() ? dst : newTemporary(); 145 145 return 0; … … 164 164 // Node::emitCode assumes that dst, if provided, is either a local or a referenced temporary. 165 165 ASSERT(!dst || dst == ignoredResult() || !dst->isTemporary() || dst->refCount()); 166 if (!m_codeBlock-> lineInfo.size() || m_codeBlock->lineInfo.last().lineNumber != n->lineNo()) {166 if (!m_codeBlock->numberOfLineInfos() || m_codeBlock->lastLineInfo().lineNumber != n->lineNo()) { 167 167 LineInfo info = { instructions().size(), n->lineNo() }; 168 m_codeBlock-> lineInfo.append(info);168 m_codeBlock->addLineInfo(info); 169 169 } 170 170 if (m_emitNodeDepth >= s_maxEmitNodeDepth) … … 183 183 void emitExpressionInfo(unsigned divot, unsigned startOffset, unsigned endOffset) 184 184 { 185 divot -= m_codeBlock->sourceOffset ;185 divot -= m_codeBlock->sourceOffset(); 186 186 if (divot > ExpressionRangeInfo::MaxDivot) { 187 187 // Overflow has occurred, we can only give line number info for errors for this region … … 207 207 info.startOffset = startOffset; 208 208 info.endOffset = endOffset; 209 m_codeBlock-> expressionInfo.append(info);209 m_codeBlock->addExpressionInfo(info); 210 210 } 211 211 212 212 ALWAYS_INLINE bool leftHandSideNeedsCopy(bool rightHasAssignments, bool rightIsPure) 213 213 { 214 return (m_codeType != FunctionCode || m_codeBlock->needsFullScopeChain || rightHasAssignments) && !rightIsPure;214 return (m_codeType != FunctionCode || m_codeBlock->needsFullScopeChain() || rightHasAssignments) && !rightIsPure; 215 215 } 216 216 … … 399 399 unsigned addRegExp(RegExp*); 400 400 401 Vector<Instruction>& instructions() { return m_codeBlock->instructions ; }401 Vector<Instruction>& instructions() { return m_codeBlock->instructions(); } 402 402 SymbolTable& symbolTable() { return *m_symbolTable; } 403 Vector<HandlerInfo>& exceptionHandlers() { return m_codeBlock->exceptionHandlers; }404 403 405 404 bool shouldOptimizeLocals() { return (m_codeType != EvalCode) && !m_dynamicScopeDepth; } 406 bool canOptimizeNonLocals() { return (m_codeType == FunctionCode) && !m_dynamicScopeDepth && !m_codeBlock->usesEval ; }405 bool canOptimizeNonLocals() { return (m_codeType == FunctionCode) && !m_dynamicScopeDepth && !m_codeBlock->usesEval(); } 407 406 408 407 RegisterID* emitThrowExpressionTooDeepException();
Note:
See TracChangeset
for help on using the changeset viewer.