Changeset 179503 in webkit for trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
- Timestamp:
- Feb 2, 2015, 3:32:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/bytecode/CodeBlock.cpp
r179478 r179503 175 175 static CString constantName(int k, JSValue value) 176 176 { 177 return toCString(value, "( @k", k - FirstConstantRegisterIndex, ")");177 return toCString(value, "(", VirtualRegister(k), ")"); 178 178 } 179 179 … … 185 185 CString CodeBlock::registerName(int r) const 186 186 { 187 if (r == missingThisObjectMarker())188 return "<null>";189 190 187 if (isConstantRegisterIndex(r)) 191 188 return constantName(r, getConstant(r)); 192 189 193 if (operandIsArgument(r)) { 194 if (!VirtualRegister(r).toArgument()) 195 return "this"; 196 return toCString("arg", VirtualRegister(r).toArgument()); 197 } 198 199 return toCString("loc", VirtualRegister(r).toLocal()); 190 return toCString(VirtualRegister(r)); 200 191 } 201 192 … … 3947 3938 if (codeBlock->captureCount() && codeBlock->symbolTable()->isCaptured(operand)) { 3948 3939 codeBlock->beginValidationDidFail(); 3949 dataLog(" At bc#", bytecodeOffset, " encountered invalid assignment to captured variable loc", virtualReg.toLocal(), ".\n");3940 dataLog(" At bc#", bytecodeOffset, " encountered invalid assignment to captured variable ", virtualReg, ".\n"); 3950 3941 codeBlock->endValidationDidFail(); 3951 3942 return;
Note:
See TracChangeset
for help on using the changeset viewer.