Changeset 142387 in webkit
- Timestamp:
- Feb 9, 2013 10:41:34 PM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r142377 r142387 1 2013-02-09 Andreas Kling <akling@apple.com> 2 3 Shrink-wrap UnlinkedCodeBlock members. 4 <http://webkit.org/b/109368> 5 6 Reviewed by Oliver Hunt. 7 8 Rearrange the members of UnlinkedCodeBlock to avoid unnecessary padding on 64-bit. 9 Knocks ~600 KB off of the Membuster3 peak. 10 11 * bytecode/UnlinkedCodeBlock.cpp: 12 (JSC::UnlinkedCodeBlock::UnlinkedCodeBlock): 13 * bytecode/UnlinkedCodeBlock.h: 14 (UnlinkedCodeBlock): 15 1 16 2013-02-08 Filip Pizlo <fpizlo@apple.com> 2 17 -
trunk/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.cpp
r141050 r142387 161 161 , m_numCalleeRegisters(0) 162 162 , m_numParameters(0) 163 , m_globalData(globalData)164 163 , m_argumentsRegister(-1) 165 164 , m_needsFullScopeChain(info.m_needsActivation) … … 169 168 , m_isConstructor(info.m_isConstructor) 170 169 , m_hasCapturedVariables(false) 170 , m_codeType(codeType) 171 , m_features(0) 171 172 , m_firstLine(0) 172 173 , m_lineCount(0) 173 , m_features(0)174 , m_codeType(codeType)175 174 , m_resolveOperationCount(0) 176 175 , m_putToBaseOperationCount(1) … … 180 179 , m_valueProfileCount(0) 181 180 , m_llintCallLinkInfoCount(0) 181 , m_globalData(globalData) 182 182 #if ENABLE(BYTECODE_COMMENTS) 183 183 , m_bytecodeCommentIterator(0) -
trunk/Source/JavaScriptCore/bytecode/UnlinkedCodeBlock.h
r141050 r142387 487 487 488 488 int m_numParameters; 489 JSGlobalData* m_globalData;490 491 489 int m_thisRegister; 492 490 int m_argumentsRegister; … … 499 497 bool m_isConstructor : 1; 500 498 bool m_hasCapturedVariables : 1; 499 CodeType m_codeType : 2; 500 CodeFeatures m_features : 16; 501 501 502 unsigned m_firstLine; 502 503 unsigned m_lineCount; 503 504 CodeFeatures m_features;505 CodeType m_codeType;506 507 Vector<unsigned> m_jumpTargets;508 509 // Constant Pools510 Vector<Identifier> m_identifiers;511 Vector<WriteBarrier<Unknown> > m_constantRegisters;512 typedef Vector<WriteBarrier<UnlinkedFunctionExecutable> > FunctionExpressionVector;513 FunctionExpressionVector m_functionDecls;514 FunctionExpressionVector m_functionExprs;515 516 WriteBarrier<SharedSymbolTable> m_symbolTable;517 518 Vector<LineInfo> m_lineInfo;519 520 Vector<unsigned> m_propertyAccessInstructions;521 522 #if ENABLE(BYTECODE_COMMENTS)523 Vector<Comment> m_bytecodeComments;524 size_t m_bytecodeCommentIterator;525 #endif526 504 527 505 unsigned m_resolveOperationCount; … … 533 511 unsigned m_llintCallLinkInfoCount; 534 512 513 JSGlobalData* m_globalData; 514 515 Vector<unsigned> m_jumpTargets; 516 517 // Constant Pools 518 Vector<Identifier> m_identifiers; 519 Vector<WriteBarrier<Unknown> > m_constantRegisters; 520 typedef Vector<WriteBarrier<UnlinkedFunctionExecutable> > FunctionExpressionVector; 521 FunctionExpressionVector m_functionDecls; 522 FunctionExpressionVector m_functionExprs; 523 524 WriteBarrier<SharedSymbolTable> m_symbolTable; 525 526 Vector<LineInfo> m_lineInfo; 527 528 Vector<unsigned> m_propertyAccessInstructions; 529 530 #if ENABLE(BYTECODE_COMMENTS) 531 Vector<Comment> m_bytecodeComments; 532 size_t m_bytecodeCommentIterator; 533 #endif 534 535 535 public: 536 536 struct RareData {
Note: See TracChangeset
for help on using the changeset viewer.