Displaying (unformatted) function code.

This commit is contained in:
Ben Vanik
2013-12-22 09:25:44 -08:00
parent 4ecdfed46f
commit c92142ca02
20 changed files with 242 additions and 44 deletions

View File

@@ -11,6 +11,7 @@
#define ALLOY_RUNTIME_FUNCTION_H_
#include <alloy/core.h>
#include <alloy/runtime/debug_info.h>
namespace alloy {
@@ -34,6 +35,9 @@ public:
Type type() const { return type_; }
uint64_t address() const { return address_; }
DebugInfo* debug_info() const { return debug_info_; }
void set_debug_info(DebugInfo* debug_info) { debug_info_ = debug_info; }
int Call(ThreadState* thread_state, uint64_t return_address);
protected:
@@ -42,6 +46,7 @@ protected:
protected:
Type type_;
uint64_t address_;
DebugInfo* debug_info_;
};