Changeset 34555 in webkit for trunk/JavaScriptCore/VM/CodeGenerator.h
- Timestamp:
- Jun 14, 2008, 10:24:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CodeGenerator.h
r34528 r34555 109 109 RegisterID* thisRegister() { return &m_thisRegister; } 110 110 111 bool isLocal(const Identifier&); 111 112 bool isLocalConstant(const Identifier&); 112 113 … … 172 173 } 173 174 174 ALWAYS_INLINE bool leftHandSideNeedsCopy(bool rightHasAssignments, bool rightIs Constant)175 { 176 return (m_codeType != FunctionCode || m_codeBlock->needsFullScopeChain || rightHasAssignments) && !rightIs Constant;177 } 178 179 ALWAYS_INLINE PassRefPtr<RegisterID> emitNodeForLeftHandSide(ExpressionNode* n, bool rightHasAssignments, bool rightIs Constant)180 { 181 if (leftHandSideNeedsCopy(rightHasAssignments, rightIs Constant)) {175 ALWAYS_INLINE bool leftHandSideNeedsCopy(bool rightHasAssignments, bool rightIsPure) 176 { 177 return (m_codeType != FunctionCode || m_codeBlock->needsFullScopeChain || rightHasAssignments) && !rightIsPure; 178 } 179 180 ALWAYS_INLINE PassRefPtr<RegisterID> emitNodeForLeftHandSide(ExpressionNode* n, bool rightHasAssignments, bool rightIsPure) 181 { 182 if (leftHandSideNeedsCopy(rightHasAssignments, rightIsPure)) { 182 183 PassRefPtr<RegisterID> dst = newTemporary(); 183 184 emitNode(dst.get(), n);
Note:
See TracChangeset
for help on using the changeset viewer.