1 /* src/vm/jit/mips/asmpart.S - Java-C interface functions for mips
3 Copyright (C) 1996-2005 R. Grafl, A. Krall, C. Kruegel, C. Oates,
4 R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner,
5 C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger,
6 Institut f. Computersprachen - TU Wien
8 This file is part of CACAO.
10 This program is free software; you can redistribute it and/or
11 modify it under the terms of the GNU General Public License as
12 published by the Free Software Foundation; either version 2, or (at
13 your option) any later version.
15 This program is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25 Contact: cacao@complang.tuwien.ac.at
27 Authors: Andreas Krall
29 Changes: Christian Thalinger
31 $Id: asmpart.S 3323 2005-10-04 18:33:30Z twisti $
38 #include "vm/jit/mips/offsets.h"
39 #include "vm/jit/mips/md-asm.h"
41 #include "vm/jit/methodheader.h"
48 /* exported functions and variables *******************************************/
50 .globl asm_calljavafunction
51 .globl asm_calljavafunction_int
53 .globl asm_calljavafunction2
54 .globl asm_calljavafunction2int
55 .globl asm_calljavafunction2long
56 .globl asm_calljavafunction2float
57 .globl asm_calljavafunction2double
59 .globl asm_call_jit_compiler
60 .globl asm_handle_exception
61 .globl asm_handle_nat_exception
63 .globl asm_wrapper_patcher
65 .globl asm_perform_threadswitch
66 .globl asm_initialize_thread_stack
67 .globl asm_switchstackandcall
68 .globl asm_getclassvalues_atomic
69 .globl asm_criticalsections
71 .globl compare_and_swap
74 /********************* function asm_calljavafunction ***************************
76 * This function calls a Java-method (which possibly needs compilation) *
77 * with up to 4 address parameters. *
79 * This functions calls the JIT-compiler which eventually translates the *
80 * method into machine code. *
82 * A possibly throwed exception will be returned to the caller as function *
83 * return value, so the java method cannot return a fucntion value (this *
84 * function usually calls 'main' and '<clinit>' which do not return a *
88 * javaobject_header *asm_calljavafunction (methodinfo *m, *
89 * void *arg1, void *arg2, void *arg3, void *arg4); *
91 *******************************************************************************/
93 .ent asm_calljavafunction
97 .dword 0 /* catch type all */
98 .dword calljava_xhandler /* handler pc */
99 .dword calljava_xhandler /* end pc */
100 .dword asm_calljavafunction /* start pc */
101 .word 1 /* extable size */
102 .word 0 /* 4-byte ALIGNMENT PADDING */
103 .dword 0 /* line number table start */
104 .dword 0 /* line number table size */
105 .word 0 /* 4-byte ALIGNMENT PADDING */
106 .word 0 /* fltsave */
107 .word 0 /* intsave */
110 .word 10*8 /* frame size */
111 .dword 0 /* method pointer (pointer to name) */
113 asm_calljavafunction:
114 asm_calljavafunction_int:
115 aaddiu sp,sp,-10*8 /* allocate stack space */
116 ast ra,0(sp) /* save return address */
121 ast pv,3*8(sp) /* procedure vector (delay slot) */
127 sdc1 fss0,4*8(sp) /* save non JavaABI saved flt registers */
134 move itmp1,a0 /* pass method pointer via tmp1 */
136 move a0,a1 /* pass the remaining parameters */
141 ala mptr,asm_call_jit_compiler/* fake virtual function call (2 instr) */
142 ast mptr,1*8(sp) /* store function address */
143 move mptr,sp /* set method pointer */
147 ald pv,1*8(mptr) /* method call as in Java */
148 jalr pv /* call JIT compiler */
150 aaddiu pv,ra,-22*4 /* recompute procedure vector */
155 ald ra,0(sp) /* restore return address */
156 ald pv,3*8(sp) /* restore procedure vector */
158 ldc1 fss0,4*8(sp) /* restore non JavaABI saved flt regs */
165 aaddiu sp,sp,10*8 /* free stack space */
170 jal builtin_throw_exception
171 move v0,zero /* clear return value for exception */
174 .end asm_calljavafunction
177 .ent asm_calljavafunction2
181 .dword 0 /* catch type all */
182 .dword calljava_xhandler2 /* handler pc */
183 .dword calljava_xhandler2 /* end pc */
184 .dword asm_calljavafunction2 /* start pc */
185 .word 1 /* extable size */
186 .word 0 /* 4-byte ALIGNMENT PADDING */
187 .dword 0 /* line number table start */
188 .dword 0 /* line number table size */
189 .word 0 /* 4-byte ALIGNMENT PADDING */
190 .word 0 /* fltsave */
191 .word 1 /* intsave */
194 .word 12*8 /* frame size */
195 .dword 0 /* method pointer (pointer to name) */
197 asm_calljavafunction2:
198 asm_calljavafunction2int:
199 asm_calljavafunction2long:
200 asm_calljavafunction2float:
201 asm_calljavafunction2double:
202 aaddiu sp,sp,-12*8 /* allocate stack space (only 11 needed)*/
203 ast ra,0(sp) /* save return address */
207 ast pv,1*8(sp) /* procedure vector */
214 sdc1 fss0,5*8(sp) /* save non JavaABI saved flt registers */
221 ast a0,4*8(sp) /* save method pointer for compiler */
225 blez s7,calljava_argsloaded
227 ald a0,offjniitem(t0)
228 ldc1 fa0,offjniitem(t0)
230 blez s7,calljava_argsloaded
232 ald a1,offjniitem+sizejniblock*1(t0)
233 ldc1 fa1,offjniitem+sizejniblock*1(t0)
235 blez s7,calljava_argsloaded
237 ald a2,offjniitem+sizejniblock*2(t0)
238 ldc1 fa2,offjniitem+sizejniblock*2(t0)
240 blez s7,calljava_argsloaded
242 ald a3,offjniitem+sizejniblock*3(t0)
243 ldc1 fa3,offjniitem+sizejniblock*3(t0)
245 blez s7,calljava_argsloaded
247 ald a4,offjniitem+sizejniblock*4(t0)
248 ldc1 fa4,offjniitem+sizejniblock*4(t0)
250 blez s7,calljava_argsloaded
252 ald a5,offjniitem+sizejniblock*5(t0)
253 ldc1 fa5,offjniitem+sizejniblock*5(t0)
255 blez s7,calljava_argsloaded
257 ald a6,offjniitem+sizejniblock*6(t0)
258 ldc1 fa6,offjniitem+sizejniblock*6(t0)
260 blez s7,calljava_argsloaded
262 ald a7,offjniitem+sizejniblock*7(t0)
263 ldc1 fa7,offjniitem+sizejniblock*7(t0)
267 move t8,sp /* save stack pointer */
268 blez s7,calljava_nocopy
275 ald t3,offjniitem+sizejniblock*8(t0)
278 ala t0,sizejniblock(t0)
280 bnez t1,calljava_copyloop
283 ald itmp1,4*8(t8) /* pass method pointer via itmp1 */
285 ala mptr,asm_call_jit_compiler/* fake virtual function call (2 instr) */
286 ast mptr,2*8(t8) /* store function address */
287 ala mptr,1*8(t8) /* set method pointer */
291 ald pv,1*8(mptr) /* method call as in Java */
292 jalr pv /* call JIT compiler */
294 aaddiu pv,ra,-76*4 /* recompute procedure vector */
299 ald ra,0(sp) /* restore return address */
300 ald pv,8(sp) /* restore procedure vector */
303 ldc1 fss0,5*8(sp) /* restore non JavaABI saved flt regs */
310 aaddiu sp,sp,12*8 /* free stack space */
317 jal builtin_throw_exception
320 .end asm_calljavafunction2
323 /****************** function asm_call_jit_compiler *****************************
325 * invokes the compiler for untranslated JavaVM methods. *
327 * Register REG_ITEMP1 contains a pointer to the method info structure *
328 * (prepared by createcompilerstub). Using the return address in R31 and the *
329 * offset in the LDA instruction or using the value in methodptr R25 the *
330 * patching address for storing the method address can be computed: *
332 * method address was either loaded using *
333 * M_ALD (REG_PV, REG_PV, a) ; invokestatic/special ($28) *
334 * M_JSR (REG_RA, REG_PV); *
336 * M_LDA (REG_PV, REG_RA, val) *
338 * M_ALD (REG_PV, REG_METHODPTR, m) ; invokevirtual/interface ($25) *
339 * M_JSR (REG_RA, REG_PV); *
341 * in the static case the method pointer can be computed using the *
342 * return address and the lda function following the jmp instruction *
344 *******************************************************************************/
347 .ent asm_call_jit_compiler
349 asm_call_jit_compiler:
350 lw t0,-12(ra) /* load instruction LD PV,xxx($y) */
351 srl t0,t0,21 /* shift right register number $y */
352 and t0,t0,31 /* isolate register number */
353 addiu t0,t0,-mptrreg /* test for REG_METHODPTR */
356 lw t0,0(ra) /* load instruction LDA PV,xxx(RA) */
358 sra t0,t0,16 /* isolate offset */
359 aaddu mptr,t0,ra /* compute update address */
362 aaddiu sp,sp,-(20*8+sizestackframeinfo) /* allocate stack space */
364 SAVE_ARGUMENT_REGISTERS(0)
366 ast mptr,16*8(sp) /* save method pointer */
367 ast ra,17*8(sp) /* save return address */
368 ast itmp1,18*8(sp) /* save methodinfo pointer */
370 aaddiu a0,sp,20*8 /* create stackframe info */
371 move a1,zero /* we don't have pv handy */
372 aaddiu a2,sp,(20*8+sizestackframeinfo) /* pass java sp */
373 move a3,ra /* pass java ra */
374 move a4,a3 /* xpc is equal to ra */
375 jal stacktrace_create_extern_stackframeinfo
377 ald a0,18*8(sp) /* pass methodinfo pointer */
378 jal jit_compile /* jit compiler */
379 ast v0,18*8(sp) /* save return value */
381 aaddiu a0,sp,20*8 /* remove stackframe info */
382 jal stacktrace_remove_stackframeinfo
384 RESTORE_ARGUMENT_REGISTERS(0)
386 ald mptr,16*8(sp) /* restore method pointer */
387 ald ra,17*8(sp) /* restore return address */
388 ald v0,18*8(sp) /* restore return value */
389 aaddiu sp,sp,20*8+sizestackframeinfo /* deallocate stack area */
391 beqz v0,L_asm_call_jit_compiler_exception
393 lw t0,-12(ra) /* load instruction LDQ PV,xxx($yy) */
395 sra t0,t0,16 /* isolate offset */
397 aaddu t0,t0,mptr /* compute update address via method pointer*/
398 ast v0,0(t0) /* save new method address there */
400 move pv,v0 /* move method address into pv */
402 jr pv /* and call method. The method returns */
403 /* directly to the caller (ra). */
405 L_asm_call_jit_compiler_exception:
406 #if defined(USE_THREADS) && defined(NATIVE_THREADS)
409 jal builtin_asm_get_exceptionptrptr
415 ald xptr,0(v0) /* get the exception pointer */
416 ast zero,0(v0) /* clear the exception pointer */
418 aaddiu xpc,ra,-4 /* faulting address is return adress - 4 */
419 b asm_handle_nat_exception
421 .end asm_call_jit_compiler
424 /********************* function asm_handle_exception ***************************
426 * This function handles an exception. It does not use the usual calling *
427 * conventions. The exception pointer is passed in REG_ITMP1 and the *
428 * pc from the exception raising position is passed in REG_ITMP2. It searches *
429 * the local exception table for a handler. If no one is found, it unwinds *
430 * stacks and continues searching the callers. *
432 * void asm_handle_exception (exceptionptr, exceptionpc); *
434 *******************************************************************************/
436 .ent asm_handle_nat_exception
438 asm_handle_nat_exception:
439 lw t0,0(ra) /* load instruction LDA PV,xxx(RA) */
441 sra t0,t0,16 /* isolate offset */
442 aaddu pv,t0,ra /* compute update address */
444 .aent asm_handle_exception
446 asm_handle_exception:
447 aaddiu sp,sp,-14*8 /* allocate stack */
449 sd v0,0*8(sp) /* save possible used registers */
450 sd t0,1*8(sp) /* also registers used by trace_exception */
464 addu t3,zero,1 /* set no unwind flag */
466 aaddiu sp,sp,-6*8 /* allocate stack */
467 sd xptr,0*8(sp) /* save used registers */
474 ald a1,MethodPointer(pv)
479 jal builtin_trace_exception /* trace_exception(xptr,methodptr) */
481 ld xptr,0*8(sp) /* restore used register */
486 aaddiu sp,sp,6*8 /* deallocate stack */
488 lw t0,ExTableSize(pv) /* t0 = exception table size */
489 beqz t0,empty_table /* if empty table skip */
490 aaddiu t1,pv,ExTableStart /* t1 = start of exception table */
493 ald t2,ExStartPC(t1) /* t2 = exception start pc */
494 sle t2,t2,xpc /* t2 = (startpc <= xpc) */
495 beqz t2,ex_table_cont /* if (false) continue */
496 ald t2,ExEndPC(t1) /* t2 = exception end pc */
497 slt t2,xpc,t2 /* t2 = (xpc < endpc) */
498 beqz t2,ex_table_cont /* if (false) continue */
499 ald a1,ExCatchType(t1) /* arg1 = exception catch type */
500 beqz a1,ex_handle_it /* NULL catches everything */
502 lw itmp3,offclassloaded(a1)
503 bnez itmp3,L_class_loaded
505 aaddiu sp,sp,-8*8 /* allocate stack */
506 sd t0,0*8(sp) /* save used register */
516 jal load_class_bootstrap
518 ld t0,0*8(sp) /* restore used register */
526 aaddiu sp,sp,8*8 /* deallocate stack */
529 lw itmp3,offclasslinked(a1)
530 aaddiu sp,sp,-8*8 /* allocate stack */
532 bnez itmp3,L_class_linked
534 sd t0,0*8(sp) /* save used register */
545 ld t0,0*8(sp) /* restore used register */
557 ald a0,offobjvftbl(xptr) /* a0 = vftblptr(xptr) */
558 ald a1,offclassvftbl(a1) /* a1 = vftblptr(catchtype) class (not obj) */
559 lw a0,offbaseval(a0) /* a0 = baseval(xptr) */
560 lw v0,offbaseval(a1) /* a2 = baseval(catchtype) */
561 lw a1,offdiffval(a1) /* a1 = diffval(catchtype) */
563 subu a0,a0,v0 /* a0 = baseval(xptr) - baseval(catchtype) */
564 sltu v0,a1,a0 /* v0 = xptr is instanceof catchtype */
565 aaddiu sp,sp,8*8 /* deallocate stack */
566 bnez v0,ex_table_cont /* if (false) continue */
569 ald xpc,ExHandlerPC(t1) /* xpc = exception handler pc */
571 beqz t3,ex_jump /* if (!(no stack unwinding) skip */
573 ld v0,0*8(sp) /* restore possible used registers */
574 ld t0,1*8(sp) /* also registers used by trace_exception */
588 aaddiu sp,sp,14*8 /* deallocate stack */
591 jr xpc /* jump to the handler */
594 aaddiu t1,t1,ExEntrySize /* next exception table entry */
595 addiu t0,t0,-1 /* decrement entry counter */
596 bgtz t0,ex_table_loop /* if (t0 > 0) next entry */
599 beqz t3,ex_already_cleared /* if here the first time, then */
600 aaddiu sp,sp,14*8 /* deallocate stack and */
601 move t3,zero /* clear the no unwind flag */
603 lw t0,IsSync(pv) /* t0 = SyncOffset */
604 beqz t0,no_monitor_exit /* if zero no monitorexit */
606 #if defined(USE_THREADS)
607 aaddu t0,sp,t0 /* add stackptr to Offset */
608 ald a0,-8(t0) /* load monitorexit pointer */
610 aaddiu sp,sp,-8*8 /* allocate stack */
611 sd t0,0*8(sp) /* save used register */
619 jal builtin_monitorexit /* builtin_monitorexit(objectptr) */
621 ld t0,0*8(sp) /* restore used register */
628 aaddiu sp,sp,8*8 /* deallocate stack */
632 lw t0,FrameSize(pv) /* t0 = frame size */
633 aaddu sp,sp,t0 /* unwind stack */
634 move t0,sp /* t0 = pointer to save area */
635 lw t1,IsLeaf(pv) /* t1 = is leaf procedure */
636 bnez t1,ex_no_restore /* if (leaf) skip */
637 ld ra,-8(t0) /* restore ra */
638 aaddiu t0,t0,-8 /* t0-- */
640 move xpc,ra /* the new xpc is ra */
641 lw t1,IntSave(pv) /* t1 = saved int register count */
642 ala t2,ex_int2 /* t2 = current pc */
643 sll t1,t1,2 /* t1 = register count * 4 */
644 asubu t2,t2,t1 /* t2 = ex_int_sav - 4 * register count */
645 jr t2 /* jump to save position */
655 sll t1,t1,1 /* t1 = register count * 4 * 2 */
656 asubu t0,t0,t1 /* t0 = t0 - 8 * register count */
658 lw t1,FltSave(pv) /* t1 = saved flt register count */
659 ala t2,ex_flt2 /* t2 = current pc */
660 sll t1,t1,2 /* t1 = register count * 4 */
661 asubu t2,t2,t1 /* t2 = ex_int_sav - 4 * register count */
662 jr t2 /* jump to save position */
668 lw t0,0(ra) /* load instruction LDA PV,xxx(RA) */
670 sra t0,t0,16 /* isolate offset */
671 aaddu pv,t0,ra /* compute update address */
674 .end asm_handle_nat_exception
677 /* asm_wrapper_patcher *********************************************************
682 40 return address into JIT code (patch position)
683 32 pointer to virtual java_objectheader
684 24 machine code (which is patched back later)
685 16 unresolved class/method/field reference
686 8 data segment displacement from load instructions
687 0 patcher function pointer to call
689 *******************************************************************************/
691 .ent asm_wrapper_patcher
694 aaddiu sp,sp,-((16+21+4)*8+sizestackframeinfo) /* create stack frame */
696 SAVE_ARGUMENT_REGISTERS(0) /* save 8 int/8 float argument registers */
697 SAVE_TEMPORARY_REGISTERS(16) /* save 5 int/16 float temporary registers */
699 ast itmp1,(16+21+0)*8(sp) /* save itmp1 */
700 ast itmp2,(16+21+1)*8(sp) /* save itmp2 */
701 ast ra,(16+21+2)*8(sp) /* save method return address (for leafs) */
702 ast pv,(16+21+3)*8(sp) /* save pv of calling java function */
704 aaddiu a0,sp,(16+21+4)*8 /* create stackframe info */
705 move a1,pv /* pass java pv */
706 aaddiu a2,sp,((6+16+21+4)*8+sizestackframeinfo) /* pass java sp */
707 move a3,ra /* this is correct for leafs */
708 ald a4,((5+16+21+4)*8+sizestackframeinfo)(sp) /* pass xpc */
709 jal stacktrace_create_extern_stackframeinfo
711 aaddiu a0,sp,((0+16+21+4)*8+sizestackframeinfo) /* pass sp */
712 ald itmp3,((0+16+21+4)*8+sizestackframeinfo)(sp) /* get function */
713 ald itmp1,(16+21+3)*8(sp) /* save pv to the position of fp */
714 ast itmp1,((0+16+21+4)*8+sizestackframeinfo)(sp)
716 ast v0,((0+16+21+4)*8+sizestackframeinfo)(sp) /* save return value */
718 aaddiu a0,sp,(16+21+4)*8 /* remove stackframe info */
719 jal stacktrace_remove_stackframeinfo
721 RESTORE_ARGUMENT_REGISTERS(0) /* restore 8 int/8 float argument registers */
722 RESTORE_TEMPORARY_REGISTERS(16) /* restore 5 int/16 float temporary reg. */
724 ald itmp1,(16+21+0)*8(sp) /* restore itmp1 */
725 ald itmp2,(16+21+1)*8(sp) /* restore itmp2 */
726 ald ra,(16+21+2)*8(sp) /* restore method return address (for leafs)*/
727 ald pv,(16+21+3)*8(sp) /* restore pv of calling java function */
729 ald v0,((0+16+21+4)*8+sizestackframeinfo)(sp) /* restore return value */
731 ald itmp3,((5+16+21+4)*8+sizestackframeinfo)(sp) /* get ra to jit code*/
732 aaddiu sp,sp,((6+16+21+4)*8+sizestackframeinfo) /* remove stack frame */
734 beqz v0,L_asm_wrapper_patcher_exception
736 jr itmp3 /* jump to new patched code */
738 L_asm_wrapper_patcher_exception:
739 move xpc,itmp3 /* return address into JIT code is xpc */
741 #if defined(USE_THREADS) && defined(NATIVE_THREADS)
746 jal builtin_asm_get_exceptionptrptr
754 ld xptr,0(v0) /* get the exception pointer */
755 sd zero,0(v0) /* clear the exception pointer */
756 b asm_handle_exception
758 .end asm_wrapper_patcher
761 /******************* function asm_initialize_thread_stack **********************
763 * u1* asm_initialize_thread_stack (void *func, u1 *stack); *
765 * initialize a thread stack *
767 *******************************************************************************/
769 .ent asm_initialize_thread_stack
771 asm_initialize_thread_stack:
772 aaddiu a1,a1,-14*8 /* allocate save area */
773 sd zero, 0*8(a1) /* s0 initalize thread area */
774 sd zero, 1*8(a1) /* s1 */
775 sd zero, 2*8(a1) /* s2 */
776 sd zero, 3*8(a1) /* s3 */
777 sd zero, 4*8(a1) /* s4 */
778 sd zero, 5*8(a1) /* s5 */
779 sd zero, 6*8(a1) /* s6 */
780 sd zero, 7*8(a1) /* s7 */
781 sd zero, 8*8(a1) /* s8 */
782 sd zero, 9*8(a1) /* fs0 */
783 sd zero,10*8(a1) /* fs1 */
784 sd zero,11*8(a1) /* fs2 */
785 sd zero,12*8(a1) /* fs3 */
790 .end asm_initialize_thread_stack
793 /******************* function asm_perform_threadswitch *************************
795 * void asm_perform_threadswitch (u1 **from, u1 **to, u1 **stackTop); *
797 * performs a threadswitch *
799 *******************************************************************************/
801 .ent asm_perform_threadswitch
803 asm_perform_threadswitch:
804 aaddiu sp,sp,-14*8 /* allocate new stack */
805 sd s0, 0*8(sp) /* save saved registers of old thread */
819 ast sp,0(a0) /* save old stack pointer */
820 ast sp,0(a2) /* stackTop = old stack pointer */
821 ald sp,0(a1) /* load new stack pointer */
822 ld s0, 0*8(sp) /* load saved registers of new thread */
836 aaddiu sp,sp,14*8 /* deallocate new stack */
840 .end asm_perform_threadswitch
843 /********************* function asm_switchstackandcall *************************
845 * void asm_switchstackandcall (void *stack, void *func, void **stacktopsave); *
847 * Switches to a new stack, calls a function and switches back. *
848 * a0 new stack pointer *
849 * a1 function pointer *
850 * a2 pointer to variable where stack top should be stored *
852 *******************************************************************************/
854 .ent asm_switchstackandcall
856 asm_switchstackandcall:
857 aaddiu a0,a0,-16 /* allocate new stack */
858 sd ra,0(a0) /* save return address on new stack */
859 sd sp,8(a0) /* save old stack pointer on new stack */
860 sd sp,0(a2) /* save old stack pointer to variable */
861 move sp,a0 /* switch to new stack */
865 jalr itmp3 /* and call function */
867 ld ra,0(sp) /* load return address */
868 ld sp,8(sp) /* switch to old stack */
872 .end asm_switchstackandcall
875 .ent asm_getclassvalues_atomic
877 asm_getclassvalues_atomic:
884 sw t0,offcast_super_baseval(a2)
885 sw t1,offcast_super_diffval(a2)
886 sw t2,offcast_sub_baseval(a2)
889 .end asm_getclassvalues_atomic
893 asm_criticalsections:
894 #if defined(USE_THREADS) && defined(NATIVE_THREADS)
897 .dword _crit_restart1
900 .dword _crit_restart2
907 .ent compare_and_swap
920 .end compare_and_swap
924 * These are local overrides for various environment variables in Emacs.
925 * Please do not remove this and leave it at the end of the file, where
926 * Emacs will automagically detect them.
927 * ---------------------------------------------------------------------
930 * indent-tabs-mode: t