memory. All functions writing values into the data area return the offset
relative the begin of the code area (start of procedure).
- $Id: codegen.inc 1203 2004-06-22 23:14:55Z twisti $
+ $Id: codegen.inc 1215 2004-06-29 12:24:21Z twisti $
*/
mte = NEW(methodtree_element);
mte->startpc = asm_calljavafunction;
- mte->endpc = asm_calljavafunction2-1;
+ mte->endpc = asm_calljavafunction2 - 1;
avl_insert(methodtree, mte);
mte = NEW(methodtree_element);
mte->startpc = asm_calljavafunction2;
- mte->endpc = asm_call_jit_compiler-1;
+ mte->endpc = asm_call_jit_compiler - 1;
avl_insert(methodtree, mte);
}
}
-void codegen_insertNative(void *startpc,void *endpc) {
- methodtree_element *mte;
+#if defined(__I386__) || defined(__X86_64__)
+void codegen_insertNative(void *startpc, void *endpc)
+{
+ methodtree_element *mte;
if (!methodtree) {
methodtree_element *mte;
mte = NEW(methodtree_element);
mte->startpc = asm_calljavafunction;
- mte->endpc = asm_calljavafunction2-1;
+ mte->endpc = asm_calljavafunction2 - 1;
avl_insert(methodtree, mte);
mte = NEW(methodtree_element);
mte->startpc = asm_calljavafunction2;
- mte->endpc = asm_call_jit_compiler-1;
+ mte->endpc = asm_call_jit_compiler - 1;
avl_insert(methodtree, mte);
}
+ mte = NEW(methodtree_element);
+ mte->startpc = startpc;
+ mte->endpc = endpc;
- mte = NEW(methodtree_element);
- mte->startpc = startpc;
- mte->endpc = endpc;
-
- if (avl_insert(methodtree, mte))
- panic("duplicate entry");
+ if (avl_insert(methodtree, mte))
+ panic("duplicate entry");
}
+#endif
+
void dseg_display(s4 *s4ptr)
{
memory. All functions writing values into the data area return the offset
relative the begin of the code area (start of procedure).
- $Id: codegen.inc 1203 2004-06-22 23:14:55Z twisti $
+ $Id: codegen.inc 1215 2004-06-29 12:24:21Z twisti $
*/
mte = NEW(methodtree_element);
mte->startpc = asm_calljavafunction;
- mte->endpc = asm_calljavafunction2-1;
+ mte->endpc = asm_calljavafunction2 - 1;
avl_insert(methodtree, mte);
mte = NEW(methodtree_element);
mte->startpc = asm_calljavafunction2;
- mte->endpc = asm_call_jit_compiler-1;
+ mte->endpc = asm_call_jit_compiler - 1;
avl_insert(methodtree, mte);
}
}
-void codegen_insertNative(void *startpc,void *endpc) {
- methodtree_element *mte;
+#if defined(__I386__) || defined(__X86_64__)
+void codegen_insertNative(void *startpc, void *endpc)
+{
+ methodtree_element *mte;
if (!methodtree) {
methodtree_element *mte;
mte = NEW(methodtree_element);
mte->startpc = asm_calljavafunction;
- mte->endpc = asm_calljavafunction2-1;
+ mte->endpc = asm_calljavafunction2 - 1;
avl_insert(methodtree, mte);
mte = NEW(methodtree_element);
mte->startpc = asm_calljavafunction2;
- mte->endpc = asm_call_jit_compiler-1;
+ mte->endpc = asm_call_jit_compiler - 1;
avl_insert(methodtree, mte);
}
+ mte = NEW(methodtree_element);
+ mte->startpc = startpc;
+ mte->endpc = endpc;
- mte = NEW(methodtree_element);
- mte->startpc = startpc;
- mte->endpc = endpc;
-
- if (avl_insert(methodtree, mte))
- panic("duplicate entry");
+ if (avl_insert(methodtree, mte))
+ panic("duplicate entry");
}
+#endif
+
void dseg_display(s4 *s4ptr)
{