Changeset 174897 in webkit
- Timestamp:
- Oct 20, 2014 11:52:37 AM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r174896 r174897 1 2014-10-20 Mark Lam <mark.lam@apple.com> 2 3 Factor out JITCode::typeName() for debugging use. 4 <https://webkit.org/b/137888> 5 6 Reviewed by Geoffrey Garen. 7 8 JITCode's printInternal() currently decodes the JITType into a string and 9 prints it. This change factors out the part that decodes the JITType into 10 JITCode::typeName() so that we can call it from lldb while debugging to 11 quickly decode a JITType value. 12 13 * jit/JITCode.cpp: 14 (JSC::JITCode::typeName): 15 (WTF::printInternal): 16 * jit/JITCode.h: 17 1 18 2014-10-20 Joseph Pecoraro <pecoraro@apple.com> 2 19 -
trunk/Source/JavaScriptCore/jit/JITCode.cpp
r173600 r174897 42 42 JITCode::~JITCode() 43 43 { 44 } 45 46 const char* JITCode::typeName(JITType jitType) 47 { 48 switch (jitType) { 49 case None: 50 return "None"; 51 case HostCallThunk: 52 return "Host"; 53 case InterpreterThunk: 54 return "LLInt"; 55 case BaselineJIT: 56 return "Baseline"; 57 case DFGJIT: 58 return "DFG"; 59 case FTLJIT: 60 return "FTL"; 61 default: 62 CRASH(); 63 return ""; 64 } 44 65 } 45 66 … … 234 255 void printInternal(PrintStream& out, JSC::JITCode::JITType type) 235 256 { 236 switch (type) { 237 case JSC::JITCode::None: 238 out.print("None"); 239 return; 240 case JSC::JITCode::HostCallThunk: 241 out.print("Host"); 242 return; 243 case JSC::JITCode::InterpreterThunk: 244 out.print("LLInt"); 245 return; 246 case JSC::JITCode::BaselineJIT: 247 out.print("Baseline"); 248 return; 249 case JSC::JITCode::DFGJIT: 250 out.print("DFG"); 251 return; 252 case JSC::JITCode::FTLJIT: 253 out.print("FTL"); 254 return; 255 default: 256 CRASH(); 257 return; 258 } 257 out.print("%s", JSC::JITCode::typeName(type)); 259 258 } 260 259 -
trunk/Source/JavaScriptCore/jit/JITCode.h
r173199 r174897 63 63 }; 64 64 65 static const char* typeName(JITType); 66 65 67 static JITType bottomTierJIT() 66 68 {
Note: See TracChangeset
for help on using the changeset viewer.