Removing alloy/core.h.

This commit is contained in:
Ben Vanik
2014-08-21 20:49:47 -07:00
parent e1b0388faf
commit 82b9841b5a
79 changed files with 64 additions and 115 deletions

View File

@@ -12,8 +12,6 @@
#include <memory>
#include <alloy/core.h>
namespace alloy {
namespace hir {
class HIRBuilder;

View File

@@ -12,7 +12,6 @@
#include <memory>
#include <alloy/core.h>
#include <alloy/backend/machine_info.h>
namespace alloy {

View File

@@ -16,6 +16,7 @@
#include <alloy/hir/hir_builder.h>
#include <alloy/hir/label.h>
#include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace alloy {
namespace backend {

View File

@@ -10,8 +10,6 @@
#ifndef ALLOY_BACKEND_IVM_IVM_ASSEMBLER_H_
#define ALLOY_BACKEND_IVM_IVM_ASSEMBLER_H_
#include <alloy/core.h>
#include <alloy/arena.h>
#include <alloy/backend/assembler.h>

View File

@@ -10,8 +10,6 @@
#ifndef ALLOY_BACKEND_IVM_IVM_BACKEND_H_
#define ALLOY_BACKEND_IVM_IVM_BACKEND_H_
#include <alloy/core.h>
#include <alloy/backend/backend.h>
namespace alloy {

View File

@@ -10,47 +10,42 @@
#ifndef ALLOY_BACKEND_IVM_IVM_FUNCTION_H_
#define ALLOY_BACKEND_IVM_IVM_FUNCTION_H_
#include <alloy/core.h>
#include <alloy/backend/ivm/ivm_intcode.h>
#include <alloy/runtime/function.h>
#include <alloy/runtime/symbol_info.h>
namespace alloy {
namespace backend {
namespace ivm {
class IVMFunction : public runtime::Function {
public:
public:
IVMFunction(runtime::FunctionInfo* symbol_info);
virtual ~IVMFunction();
void Setup(TranslationContext& ctx);
protected:
protected:
virtual int AddBreakpointImpl(runtime::Breakpoint* breakpoint);
virtual int RemoveBreakpointImpl(runtime::Breakpoint* breakpoint);
virtual int CallImpl(runtime::ThreadState* thread_state,
uint64_t return_address);
private:
private:
IntCode* GetIntCodeAtSourceOffset(uint64_t offset);
void OnBreakpointHit(runtime::ThreadState* thread_state, IntCode* i);
private:
size_t register_count_;
size_t stack_size_;
size_t intcode_count_;
IntCode* intcodes_;
size_t source_map_count_;
private:
size_t register_count_;
size_t stack_size_;
size_t intcode_count_;
IntCode* intcodes_;
size_t source_map_count_;
SourceMapEntry* source_map_;
};
} // namespace ivm
} // namespace backend
} // namespace alloy
#endif // ALLOY_BACKEND_IVM_IVM_FUNCTION_H_

View File

@@ -10,16 +10,14 @@
#ifndef ALLOY_BACKEND_IVM_INTCODE_H_
#define ALLOY_BACKEND_IVM_INTCODE_H_
#include <alloy/core.h>
#include <alloy/hir/instr.h>
#include <alloy/hir/opcodes.h>
namespace alloy {
namespace runtime {
class ThreadState;
}
}
} // namespace runtime
} // namespace alloy
namespace alloy {
namespace backend {

View File

@@ -10,8 +10,6 @@
#ifndef ALLOY_BACKEND_IVM_IVM_STACK_H_
#define ALLOY_BACKEND_IVM_IVM_STACK_H_
#include <alloy/core.h>
#include <alloy/backend/ivm/ivm_intcode.h>
namespace alloy {

View File

@@ -10,7 +10,7 @@
#ifndef ALLOY_BACKEND_MACHINE_INFO_H_
#define ALLOY_BACKEND_MACHINE_INFO_H_
#include <alloy/core.h>
#include <cstdint>
namespace alloy {
namespace backend {

View File

@@ -16,6 +16,7 @@
#include <alloy/hir/hir_builder.h>
#include <alloy/hir/label.h>
#include <alloy/runtime/runtime.h>
#include <xenia/profiling.h>
namespace BE {
#include <beaengine/BeaEngine.h>

View File

@@ -12,10 +12,8 @@
#include <memory>
#include <alloy/core.h>
#include <alloy/string_buffer.h>
#include <alloy/backend/assembler.h>
#include <alloy/string_buffer.h>
namespace alloy {
namespace backend {

View File

@@ -10,8 +10,6 @@
#ifndef ALLOY_BACKEND_X64_X64_BACKEND_H_
#define ALLOY_BACKEND_X64_X64_BACKEND_H_
#include <alloy/core.h>
#include <alloy/backend/backend.h>
namespace alloy {

View File

@@ -12,8 +12,6 @@
#include <mutex>
#include <alloy/core.h>
namespace alloy {
namespace backend {
namespace x64 {

View File

@@ -10,6 +10,7 @@
#include <alloy/backend/x64/x64_code_cache.h>
#include <poly/poly.h>
#include <xenia/profiling.h>
namespace alloy {
namespace backend {

View File

@@ -20,6 +20,7 @@
#include <alloy/runtime/symbol_info.h>
#include <alloy/runtime/thread_state.h>
#include <xdb/protocol.h>
#include <xenia/profiling.h>
namespace alloy {
namespace backend {

View File

@@ -10,10 +10,7 @@
#ifndef ALLOY_BACKEND_X64_X64_EMITTER_H_
#define ALLOY_BACKEND_X64_X64_EMITTER_H_
#include <alloy/core.h>
#include <alloy/hir/value.h>
#include <third_party/xbyak/xbyak/xbyak.h>
namespace alloy {

View File

@@ -10,7 +10,6 @@
#ifndef ALLOY_BACKEND_X64_X64_FUNCTION_H_
#define ALLOY_BACKEND_X64_X64_FUNCTION_H_
#include <alloy/core.h>
#include <alloy/runtime/function.h>
#include <alloy/runtime/symbol_info.h>

View File

@@ -10,8 +10,6 @@
#ifndef ALLOY_BACKEND_X64_X64_SEQUENCES_H_
#define ALLOY_BACKEND_X64_X64_SEQUENCES_H_
#include <alloy/core.h>
namespace alloy {
namespace hir {
class Instr;

View File

@@ -10,7 +10,6 @@
#ifndef ALLOY_BACKEND_X64_X64_THUNK_EMITTER_H_
#define ALLOY_BACKEND_X64_X64_THUNK_EMITTER_H_
#include <alloy/core.h>
#include <alloy/backend/x64/x64_backend.h>
#include <alloy/backend/x64/x64_emitter.h>

View File

@@ -10,9 +10,8 @@
#ifndef ALLOY_BACKEND_X64_X64_TRACERS_H_
#define ALLOY_BACKEND_X64_X64_TRACERS_H_
#include <alloy/core.h>
#include <xmmintrin.h>
#include <cstdint>
namespace alloy {
namespace backend {