Home | History | Annotate | Download | only in bytecode

Lines Matching defs:codeBlock

31 #include "CodeBlock.h"
81 CString CodeBlock::registerName(ExecState* exec, int r) const
139 void CodeBlock::printUnaryOp(ExecState* exec, int location, Vector<Instruction>::const_iterator& it, const char* op) const
147 void CodeBlock::printBinaryOp(ExecState* exec, int location, Vector<Instruction>::const_iterator& it, const char* op) const
155 void CodeBlock::printConditionalJump(ExecState* exec, const Vector<Instruction>::const_iterator&, Vector<Instruction>::const_iterator& it, int location, const char* op) const
162 void CodeBlock::printGetByIdOp(ExecState* exec, int location, Vector<Instruction>::const_iterator& it, const char* op) const
171 void CodeBlock::printPutByIdOp(ExecState* exec, int location, Vector<Instruction>::const_iterator& it, const char* op) const
277 void CodeBlock::printStructure(const char* name, const Instruction* vPC, int operand) const
283 void CodeBlock::printStructures(const Instruction* vPC) const
325 void CodeBlock::dump(ExecState* exec) const
475 void CodeBlock::dump(ExecState* exec, const Vector<Instruction>::const_iterator& begin, Vector<Instruction>::const_iterator& it) const
1135 static HashSet<CodeBlock*> liveCodeBlockSet;
1169 void CodeBlock::dumpStatistics()
1191 HashSet<CodeBlock*>::const_iterator end = liveCodeBlockSet.end();
1192 for (HashSet<CodeBlock*>::const_iterator it = liveCodeBlockSet.begin(); it != end; ++it) {
1193 CodeBlock* codeBlock = *it;
1195 #define GET_STATS(name) if (!codeBlock->m_##name.isEmpty()) { name##IsNotEmpty++; name##TotalSize += sizeInBytes(codeBlock->m_##name); }
1199 if (!codeBlock->m_symbolTable.isEmpty()) {
1201 symbolTableTotalSize += (codeBlock->m_symbolTable.capacity() * (sizeof(SymbolTable::KeyType) + sizeof(SymbolTable::MappedType)));
1204 if (codeBlock->m_exceptionInfo) {
1206 #define GET_STATS(name) if (!codeBlock->m_exceptionInfo->m_##name.isEmpty()) { name##IsNotEmpty++; name##TotalSize += sizeInBytes(codeBlock->m_exceptionInfo->m_##name); }
1211 if (codeBlock->m_rareData) {
1213 #define GET_STATS(name) if (!codeBlock->m_rareData->m_##name.isEmpty()) { name##IsNotEmpty++; name##TotalSize += sizeInBytes(codeBlock->m_rareData->m_##name); }
1217 if (!codeBlock->m_rareData->m_evalCodeCache.isEmpty())
1221 switch (codeBlock->codeType()) {
1243 totalSize += (liveCodeBlockSet.size() * sizeof(CodeBlock));
1246 printf("Size of a single CodeBlock [sizeof(CodeBlock)]: %zu\n", sizeof(CodeBlock));
1248 printf("Average size of a CodeBlock: %zu\n", totalSize / liveCodeBlockSet.size());
1269 printf("Dumping CodeBlock statistics is not enabled.\n");
1273 CodeBlock::CodeBlock(ScriptExecutable* ownerExecutable, CodeType codeType, PassRefPtr<SourceProvider> sourceProvider, unsigned sourceOffset, SymbolTable* symTab)
1298 CodeBlock::~CodeBlock()
1342 void CodeBlock::unlinkCallers()
1354 void CodeBlock::derefStructures(Instruction* vPC) const
1399 void CodeBlock::refStructures(Instruction* vPC) const
1432 void CodeBlock::markAggregate(MarkStack& markStack)
1442 void CodeBlock::reparseForExceptionInfoIfNecessary(CallFrame* callFrame)
1463 HandlerInfo* CodeBlock::handlerForBytecodeOffset(unsigned bytecodeOffset)
1481 int CodeBlock::lineNumberForBytecodeOffset(CallFrame* callFrame, unsigned bytecodeOffset)
1506 int CodeBlock::expressionRangeForBytecodeOffset(CallFrame* callFrame, unsigned bytecodeOffset, int& divot, int& startOffset, int& endOffset)
1545 bool CodeBlock::getByIdExceptionInfoForBytecodeOffset(CallFrame* callFrame, unsigned bytecodeOffset, OpcodeID& opcodeID)
1573 bool CodeBlock::functionRegisterForBytecodeOffset(unsigned bytecodeOffset, int& functionRegisterIndex)
1599 bool CodeBlock::hasGlobalResolveInstructionAtBytecodeOffset(unsigned bytecodeOffset)
1619 bool CodeBlock::hasGlobalResolveInfoAtBytecodeOffset(unsigned bytecodeOffset)
1640 void CodeBlock::shrinkToFit()