src/vm/cycles-stats.h: Switched from asm_get_cycle_count to md_get_cycle_count.
[cacao.git] / src / vm / jit / asmpart.h
index ba688b10f7c90b0d0d4262e995ec6d0e36a474b5..8769403d7392d8aae2776f220cd5489846f349d7 100644 (file)
 #include "vm/types.h"
 
 #include "vm/global.h"
-#include "vm/vm.h"
-
-#include "vmcore/linker.h"
+#include "vm/vm.hpp"
 
 
 /* function prototypes ********************************************************/
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* machine dependent initialization */
 s4   asm_md_init(void);
 
@@ -97,13 +99,8 @@ void intrp_asm_abstractmethoderror(void);
 /* wrapper for code patching functions */
 void asm_patcher_wrapper(void);
 
-long asm_compare_and_swap(volatile long *p, long oldval, long newval);
-void asm_memory_barrier(void);
-
 /* cache flush function */
-void asm_cacheflush(u1 *addr, s4 nbytes);
-
-u8 asm_get_cycle_count(void);
+void asm_cacheflush(void* addr, int nbytes);
 
 void *md_asm_codegen_get_pv_from_pc(void *ra);
 
@@ -111,6 +108,10 @@ void *md_asm_codegen_get_pv_from_pc(void *ra);
 void asm_escape_check(java_object_t *obj);
 #endif
 
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
 #endif /* _ASMPART_H */