Changeset 58986 in webkit for trunk/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- May 7, 2010, 5:05:00 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/CodeBlock.cpp
r58902 r58986 162 162 static bool isGlobalResolve(OpcodeID opcodeID) 163 163 { 164 return opcodeID == op_resolve_global ;164 return opcodeID == op_resolve_global || opcodeID == op_resolve_global_dynamic; 165 165 } 166 166 … … 299 299 return; 300 300 } 301 if (vPC[0].u.opcode == interpreter->getOpcode(op_resolve_global_dynamic)) { 302 printStructure("resolve_global_dynamic", vPC, 4); 303 return; 304 } 301 305 302 306 // These m_instructions doesn't ref Structures. … … 665 669 printf("[%4d] resolve_global\t %s, %s, %s\n", location, registerName(exec, r0).data(), valueToSourceString(exec, scope).ascii(), idName(id0, m_identifiers[id0]).data()); 666 670 it += 2; 671 break; 672 } 673 case op_resolve_global_dynamic: { 674 int r0 = (++it)->u.operand; 675 JSValue scope = JSValue((++it)->u.jsCell); 676 int id0 = (++it)->u.operand; 677 int depth = it[2].u.operand; 678 printf("[%4d] resolve_global_dynamic\t %s, %s, %s, %d\n", location, registerName(exec, r0).data(), valueToSourceString(exec, scope).ascii(), idName(id0, m_identifiers[id0]).data(), depth); 679 it += 3; 667 680 break; 668 681 } … … 1394 1407 return; 1395 1408 } 1396 if (vPC[0].u.opcode == interpreter->getOpcode(op_resolve_global) ) {1409 if (vPC[0].u.opcode == interpreter->getOpcode(op_resolve_global) || vPC[0].u.opcode == interpreter->getOpcode(op_resolve_global_dynamic)) { 1397 1410 if(vPC[4].u.structure) 1398 1411 vPC[4].u.structure->deref();
Note:
See TracChangeset
for help on using the changeset viewer.