// Copyright 2012 The Rust Project Developers. See the COPYRIGHT // file at the top-level directory of this distribution and at // http://rust-lang.org/COPYRIGHT. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. // General-purpose registers. This structure is used during stack crawling. #ifndef GPR_H #define GPR_H #include "rust_gpr_base.h" class rust_gpr : public rust_gpr_base { public: uintptr_t rax, rbx, rcx, rdx, rsi, rdi, rbp, rip; uintptr_t r8, r9, r10, r11, r12, r13, r14, r15; inline uintptr_t get_fp() { return rbp; } inline uintptr_t get_ip() { return rip; } inline void set_fp(uintptr_t new_fp) { rbp = new_fp; } inline void set_ip(uintptr_t new_ip) { rip = new_ip; } void load(); }; #endif