diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-14 16:29:47 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-14 16:29:47 +0200 |
commit | d0424a769059c84ae20beb3c217812792ea6726b (patch) | |
tree | 6f94a5c3db8c52c6694ee56498542a6c35417350 /Source/JavaScriptCore/bytecode/CodeBlock.cpp | |
parent | 88a04ac016f57c2d78e714682445dff2e7db4ade (diff) | |
download | qtwebkit-d0424a769059c84ae20beb3c217812792ea6726b.tar.gz |
Imported WebKit commit 37c5e5041d39a14ea0d429a77ebd352e4bd26516 (http://svn.webkit.org/repository/webkit/trunk@128608)
New snapshot that enables WebKit2 build on Windows (still some bugs) and allows for WebKit to be built with qmake && make
Diffstat (limited to 'Source/JavaScriptCore/bytecode/CodeBlock.cpp')
-rw-r--r-- | Source/JavaScriptCore/bytecode/CodeBlock.cpp | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/Source/JavaScriptCore/bytecode/CodeBlock.cpp b/Source/JavaScriptCore/bytecode/CodeBlock.cpp index d79a37668..6b31be221 100644 --- a/Source/JavaScriptCore/bytecode/CodeBlock.cpp +++ b/Source/JavaScriptCore/bytecode/CodeBlock.cpp @@ -291,10 +291,14 @@ void CodeBlock::printGetByIdCacheStatus(ExecState* exec, int location) UNUSED_PARAM(ident); // tell the compiler to shut up in certain platform configurations. #if ENABLE(LLINT) - Structure* structure = instruction[4].u.structure.get(); - dataLog(" llint("); - dumpStructure("struct", exec, structure, ident); - dataLog(")"); + if (exec->interpreter()->getOpcodeID(instruction[0].u.opcode) == op_get_array_length) + dataLog(" llint(array_length)"); + else { + Structure* structure = instruction[4].u.structure.get(); + dataLog(" llint("); + dumpStructure("struct", exec, structure, ident); + dataLog(")"); + } #endif #if ENABLE(JIT) @@ -1001,6 +1005,22 @@ void CodeBlock::dump(ExecState* exec, const Vector<Instruction>::const_iterator& it++; break; } + case op_init_global_const: { + WriteBarrier<Unknown>* registerPointer = (++it)->u.registerPointer; + int r0 = (++it)->u.operand; + dataLog("[%4d] init_global_const\t g%d(%p), %s", location, m_globalObject->findRegisterIndex(registerPointer), registerPointer, registerName(exec, r0).data()); + dumpBytecodeCommentAndNewLine(location); + break; + } + case op_init_global_const_check: { + WriteBarrier<Unknown>* registerPointer = (++it)->u.registerPointer; + int r0 = (++it)->u.operand; + dataLog("[%4d] init_global_const_check\t g%d(%p), %s", location, m_globalObject->findRegisterIndex(registerPointer), registerPointer, registerName(exec, r0).data()); + dumpBytecodeCommentAndNewLine(location); + it++; + it++; + break; + } case op_resolve_base: { int r0 = (++it)->u.operand; int id0 = (++it)->u.operand; @@ -2081,6 +2101,8 @@ void CodeBlock::finalizeUnconditionally() curInstruction[7].u.structureChain.clear(); curInstruction[0].u.opcode = interpreter->getOpcode(op_put_by_id); break; + case op_get_array_length: + break; default: ASSERT_NOT_REACHED(); } |