Changeset 153256 in webkit for trunk/Source/JavaScriptCore/disassembler/UDis86Disassembler.h
- Timestamp:
- Jul 24, 2013, 9:04:05 PM (12 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/disassembler/UDis86Disassembler.h
r153255 r153256 1 1 /* 2 * Copyright (C) 201 2Apple Inc. All rights reserved.2 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 24 24 */ 25 25 26 #include "config.h" 26 #ifndef UDis86Disassembler_h 27 #define UDis86Disassembler_h 28 27 29 #include "Disassembler.h" 28 29 #include "MacroAssemblerCodeRef.h"30 #include <wtf/DataLog.h>31 30 32 31 namespace JSC { 33 32 34 void disassemble(const MacroAssemblerCodePtr& codePtr, size_t size, const char* prefix, PrintStream& out) 35 { 36 if (tryToDisassemble(codePtr, size, prefix, out)) 37 return; 38 39 out.printf("%sdisassembly not available for range %p...%p\n", prefix, codePtr.executableAddress(), static_cast<char*>(codePtr.executableAddress()) + size); 40 } 33 #if USE(UDIS86) 34 35 bool tryToDisassembleWithUDis86(const MacroAssemblerCodePtr& codePtr, size_t size, const char* prefix, PrintStream& out, InstructionSubsetHint); 36 37 #else // USE(UDIS86) 38 39 inline bool tryToDisassembleWithUDis86(const MacroAssemblerCodePtr&, size_t, const char*, PrintStream&, InstructionSubsetHint) { return false; } 40 41 #endif // USE(UDIS86) 41 42 42 43 } // namespace JSC 43 44 45 #endif // UDis86Disassembler_h 46
Note:
See TracChangeset
for help on using the changeset viewer.