Merged revisions 7797-7917 via svnmerge from
[cacao.git] / src / vm / jit / alpha / emit.c
1 /* src/vm/jit/alpha/emit.c - Alpha code emitter functions
2
3    Copyright (C) 1996-2005, 2006, 2007 R. Grafl, A. Krall, C. Kruegel,
4    C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring,
5    E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich,
6    J. Wenninger, Institut f. Computersprachen - TU Wien
7
8    This file is part of CACAO.
9
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.
14
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.
19
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., 51 Franklin Street, Fifth Floor, Boston, MA
23    02110-1301, USA.
24
25    $Id: emit.c 7918 2007-05-20 20:42:18Z michi $
26
27 */
28
29
30 #include "config.h"
31 #include "vm/types.h"
32
33 #include <assert.h>
34
35 #include "md-abi.h"
36
37 #include "vm/jit/alpha/codegen.h"
38
39 #include "mm/memory.h"
40
41 #include "threads/lock-common.h"
42
43 #include "vm/builtin.h"
44 #include "vm/exceptions.h"
45
46 #include "vm/jit/abi.h"
47 #include "vm/jit/abi-asm.h"
48 #include "vm/jit/asmpart.h"
49 #include "vm/jit/dseg.h"
50 #include "vm/jit/emit-common.h"
51 #include "vm/jit/jit.h"
52 #include "vm/jit/replace.h"
53
54 #include "vmcore/options.h"
55
56
57 /* emit_load *******************************************************************
58
59    Emits a possible load of an operand.
60
61 *******************************************************************************/
62
63 s4 emit_load(jitdata *jd, instruction *iptr, varinfo *src, s4 tempreg)
64 {
65         codegendata  *cd;
66         s4            disp;
67         s4            reg;
68
69         /* get required compiler data */
70
71         cd = jd->cd;
72
73         if (IS_INMEMORY(src->flags)) {
74                 COUNT_SPILLS;
75
76                 disp = src->vv.regoff * 8;
77
78                 switch (src->type) {
79                 case TYPE_INT:
80                 case TYPE_LNG:
81                 case TYPE_ADR:
82                         M_LLD(tempreg, REG_SP, disp);
83                         break;
84                 case TYPE_FLT:
85                 case TYPE_DBL:
86                         M_DLD(tempreg, REG_SP, disp);
87                         break;
88                 default:
89                         vm_abort("emit_load: unknown type %d", src->type);
90                 }
91
92                 reg = tempreg;
93         }
94         else
95                 reg = src->vv.regoff;
96
97         return reg;
98 }
99
100
101 /* emit_store ******************************************************************
102
103    Emit a possible store for the given variable.
104
105 *******************************************************************************/
106
107 void emit_store(jitdata *jd, instruction *iptr, varinfo *dst, s4 d)
108 {
109         codegendata  *cd;
110         s4            disp;
111
112         /* get required compiler data */
113
114         cd = jd->cd;
115
116         if (IS_INMEMORY(dst->flags)) {
117                 COUNT_SPILLS;
118
119                 disp = dst->vv.regoff * 8;
120
121                 switch (dst->type) {
122                 case TYPE_INT:
123                 case TYPE_LNG:
124                 case TYPE_ADR:
125                         M_LST(d, REG_SP, disp);
126                         break;
127                 case TYPE_FLT:
128                 case TYPE_DBL:
129                         M_DST(d, REG_SP, disp);
130                         break;
131                 default:
132                         vm_abort("emit_store: unknown type %d", dst->type);
133                 }
134         }
135 }
136
137
138 /* emit_copy *******************************************************************
139
140    Generates a register/memory to register/memory copy.
141
142 *******************************************************************************/
143
144 void emit_copy(jitdata *jd, instruction *iptr)
145 {
146         codegendata *cd;
147         varinfo     *src;
148         varinfo     *dst;
149         s4           s1, d;
150
151         /* get required compiler data */
152
153         cd = jd->cd;
154
155         /* get source and destination variables */
156
157         src = VAROP(iptr->s1);
158         dst = VAROP(iptr->dst);
159
160         if ((src->vv.regoff != dst->vv.regoff) ||
161                 ((src->flags ^ dst->flags) & INMEMORY)) {
162
163                 if ((src->type == TYPE_RET) || (dst->type == TYPE_RET)) {
164                         /* emit nothing, as the value won't be used anyway */
165                         return;
166                 }
167
168                 /* If one of the variables resides in memory, we can eliminate
169                    the register move from/to the temporary register with the
170                    order of getting the destination register and the load. */
171
172                 if (IS_INMEMORY(src->flags)) {
173                         d  = codegen_reg_of_var(iptr->opc, dst, REG_IFTMP);
174                         s1 = emit_load(jd, iptr, src, d);
175                 }
176                 else {
177                         s1 = emit_load(jd, iptr, src, REG_IFTMP);
178                         d  = codegen_reg_of_var(iptr->opc, dst, s1);
179                 }
180
181                 if (s1 != d) {
182                         switch (src->type) {
183                         case TYPE_INT:
184                         case TYPE_LNG:
185                         case TYPE_ADR:
186                                 M_MOV(s1, d);
187                                 break;
188                         case TYPE_FLT:
189                         case TYPE_DBL:
190                                 M_FMOV(s1, d);
191                                 break;
192                         default:
193                                 vm_abort("emit_copy: unknown type %d", src->type);
194                         }
195                 }
196
197                 emit_store(jd, iptr, dst, d);
198         }
199 }
200
201
202 /* emit_iconst *****************************************************************
203
204    XXX
205
206 *******************************************************************************/
207
208 void emit_iconst(codegendata *cd, s4 d, s4 value)
209 {
210         s4 disp;
211
212         if ((value >= -32768) && (value <= 32767))
213                 M_LDA_INTERN(d, REG_ZERO, value);
214         else {
215                 disp = dseg_add_s4(cd, value);
216                 M_ILD(d, REG_PV, disp);
217         }
218 }
219
220
221 /* emit_lconst *****************************************************************
222
223    XXX
224
225 *******************************************************************************/
226
227 void emit_lconst(codegendata *cd, s4 d, s8 value)
228 {
229         s4 disp;
230
231         if ((value >= -32768) && (value <= 32767))
232                 M_LDA_INTERN(d, REG_ZERO, value);
233         else {
234                 disp = dseg_add_s8(cd, value);
235                 M_LLD(d, REG_PV, disp);
236         }
237 }
238
239
240 /* emit_branch *****************************************************************
241
242    Emits the code for conditional and unconditional branchs.
243
244 *******************************************************************************/
245
246 void emit_branch(codegendata *cd, s4 disp, s4 condition, s4 reg, u4 opt)
247 {
248         s4 checkdisp;
249         s4 branchdisp;
250
251         /* calculate the different displacements */
252
253         checkdisp  = (disp - 4);
254         branchdisp = (disp - 4) >> 2;
255
256         /* check which branch to generate */
257
258         if (condition == BRANCH_UNCONDITIONAL) {
259                 /* check displacement for overflow */
260
261                 if ((checkdisp < (s4) 0xffe00000) || (checkdisp > (s4) 0x001fffff)) {
262                         /* if the long-branches flag isn't set yet, do it */
263
264                         if (!CODEGENDATA_HAS_FLAG_LONGBRANCHES(cd)) {
265                                 log_println("setting error");
266                                 cd->flags |= (CODEGENDATA_FLAG_ERROR |
267                                                           CODEGENDATA_FLAG_LONGBRANCHES);
268                         }
269
270                         vm_abort("emit_branch: emit unconditional long-branch code");
271                 }
272                 else {
273                         M_BR(branchdisp);
274                 }
275         }
276         else {
277                 /* and displacement for overflow */
278
279                 if ((checkdisp < (s4) 0xffe00000) || (checkdisp > (s4) 0x001fffff)) {
280                         /* if the long-branches flag isn't set yet, do it */
281
282                         if (!CODEGENDATA_HAS_FLAG_LONGBRANCHES(cd)) {
283                                 log_println("setting error");
284                                 cd->flags |= (CODEGENDATA_FLAG_ERROR |
285                                                           CODEGENDATA_FLAG_LONGBRANCHES);
286                         }
287
288                         vm_abort("emit_branch: emit conditional long-branch code");
289                 }
290                 else {
291                         switch (condition) {
292                         case BRANCH_EQ:
293                                 M_BEQZ(reg, branchdisp);
294                                 break;
295                         case BRANCH_NE:
296                                 M_BNEZ(reg, branchdisp);
297                                 break;
298                         case BRANCH_LT:
299                                 M_BLTZ(reg, branchdisp);
300                                 break;
301                         case BRANCH_GE:
302                                 M_BGEZ(reg, branchdisp);
303                                 break;
304                         case BRANCH_GT:
305                                 M_BGTZ(reg, branchdisp);
306                                 break;
307                         case BRANCH_LE:
308                                 M_BLEZ(reg, branchdisp);
309                                 break;
310                         default:
311                                 vm_abort("emit_branch: unknown condition %d", condition);
312                         }
313                 }
314         }
315 }
316
317
318 /* emit_arithmetic_check *******************************************************
319
320    Emit an ArithmeticException check.
321
322 *******************************************************************************/
323
324 void emit_arithmetic_check(codegendata *cd, instruction *iptr, s4 reg)
325 {
326         if (INSTRUCTION_MUST_CHECK(iptr)) {
327                 M_BNEZ(reg, 1);
328                 /* Destination register must not be REG_ZERO, because then no
329                    SIGSEGV is thrown. */
330                 M_ALD_INTERN(reg, REG_ZERO, EXCEPTION_HARDWARE_ARITHMETIC);
331         }
332 }
333
334
335 /* emit_arrayindexoutofbounds_check ********************************************
336
337    Emit an ArrayIndexOutOfBoundsException check.
338
339 *******************************************************************************/
340
341 void emit_arrayindexoutofbounds_check(codegendata *cd, instruction *iptr, s4 s1, s4 s2)
342 {
343         if (INSTRUCTION_MUST_CHECK(iptr)) {
344                 M_ILD(REG_ITMP3, s1, OFFSET(java_arrayheader, size));
345                 M_CMPULT(s2, REG_ITMP3, REG_ITMP3);
346                 M_BNEZ(REG_ITMP3, 1);
347                 M_ALD_INTERN(s2, REG_ZERO, EXCEPTION_HARDWARE_ARRAYINDEXOUTOFBOUNDS);
348         }
349 }
350
351
352 /* emit_classcast_check ********************************************************
353
354    Emit a ClassCastException check.
355
356 *******************************************************************************/
357
358 void emit_classcast_check(codegendata *cd, instruction *iptr, s4 condition, s4 reg, s4 s1)
359 {
360         if (INSTRUCTION_MUST_CHECK(iptr)) {
361                 switch (condition) {
362                 case BRANCH_EQ:
363                         M_BNEZ(reg, 1);
364                         break;
365                 case BRANCH_LE:
366                         M_BGTZ(reg, 1);
367                         break;
368                 default:
369                         vm_abort("emit_classcast_check: unknown condition %d", condition);
370                 }
371                 M_ALD_INTERN(s1, REG_ZERO, EXCEPTION_HARDWARE_CLASSCAST);
372         }
373 }
374
375
376 /* emit_nullpointer_check ******************************************************
377
378    Emit a NullPointerException check.
379
380 *******************************************************************************/
381
382 void emit_nullpointer_check(codegendata *cd, instruction *iptr, s4 reg)
383 {
384         if (INSTRUCTION_MUST_CHECK(iptr)) {
385                 M_BNEZ(reg, 1);
386                 /* Destination register must not be REG_ZERO, because then no
387                    SIGSEGV is thrown. */
388                 M_ALD_INTERN(reg, REG_ZERO, EXCEPTION_HARDWARE_NULLPOINTER);
389         }
390 }
391
392
393 /* emit_exception_check ********************************************************
394
395    Emit an Exception check.
396
397 *******************************************************************************/
398
399 void emit_exception_check(codegendata *cd, instruction *iptr)
400 {
401         if (INSTRUCTION_MUST_CHECK(iptr)) {
402                 M_BNEZ(REG_RESULT, 1);
403                 /* Destination register must not be REG_ZERO, because then no
404                    SIGSEGV is thrown. */
405                 M_ALD_INTERN(REG_RESULT, REG_ZERO, EXCEPTION_HARDWARE_EXCEPTION);
406         }
407 }
408
409
410 /* emit_patcher_stubs **********************************************************
411
412    Generates the code for the patcher stubs.
413
414 *******************************************************************************/
415
416 void emit_patcher_stubs(jitdata *jd)
417 {
418         codegendata *cd;
419         patchref    *pref;
420         u4           mcode;
421         u1          *savedmcodeptr;
422         u1          *tmpmcodeptr;
423         s4           targetdisp;
424         s4           disp;
425
426         /* get required compiler data */
427
428         cd = jd->cd;
429
430         /* generate code patching stub call code */
431
432         targetdisp = 0;
433
434         for (pref = cd->patchrefs; pref != NULL; pref = pref->next) {
435                 /* check code segment size */
436
437                 MCODECHECK(100);
438
439                 /* Get machine code which is patched back in later. The
440                    call is 1 instruction word long. */
441
442                 tmpmcodeptr = (u1 *) (cd->mcodebase + pref->branchpos);
443
444                 mcode = *((u4 *) tmpmcodeptr);
445
446                 /* Patch in the call to call the following code (done at
447                    compile time). */
448
449                 savedmcodeptr = cd->mcodeptr;   /* save current mcodeptr              */
450                 cd->mcodeptr  = tmpmcodeptr;    /* set mcodeptr to patch position     */
451
452                 disp = ((u4 *) savedmcodeptr) - (((u4 *) tmpmcodeptr) + 1);
453                 M_BSR(REG_ITMP3, disp);
454
455                 cd->mcodeptr = savedmcodeptr;   /* restore the current mcodeptr       */
456
457                 /* create stack frame */
458
459                 M_LSUB_IMM(REG_SP, 6 * 8, REG_SP);
460
461                 /* move return address onto stack */
462
463                 M_AST(REG_ITMP3, REG_SP, 5 * 8);
464
465                 /* move pointer to java_objectheader onto stack */
466
467 #if defined(ENABLE_THREADS)
468                 /* create a virtual java_objectheader */
469
470                 (void) dseg_add_unique_address(cd, NULL);                  /* flcword */
471                 (void) dseg_add_unique_address(cd, lock_get_initial_lock_word());
472                 disp = dseg_add_unique_address(cd, NULL);                  /* vftbl   */
473
474                 M_LDA(REG_ITMP3, REG_PV, disp);
475                 M_AST(REG_ITMP3, REG_SP, 4 * 8);
476 #else
477                 /* nothing to do */
478 #endif
479
480                 /* move machine code onto stack */
481
482                 disp = dseg_add_s4(cd, mcode);
483                 M_ILD(REG_ITMP3, REG_PV, disp);
484                 M_IST(REG_ITMP3, REG_SP, 3 * 8);
485
486                 /* move class/method/field reference onto stack */
487
488                 disp = dseg_add_address(cd, pref->ref);
489                 M_ALD(REG_ITMP3, REG_PV, disp);
490                 M_AST(REG_ITMP3, REG_SP, 2 * 8);
491
492                 /* move data segment displacement onto stack */
493
494                 disp = dseg_add_s4(cd, pref->disp);
495                 M_ILD(REG_ITMP3, REG_PV, disp);
496                 M_IST(REG_ITMP3, REG_SP, 1 * 8);
497
498                 /* move patcher function pointer onto stack */
499
500                 disp = dseg_add_functionptr(cd, pref->patcher);
501                 M_ALD(REG_ITMP3, REG_PV, disp);
502                 M_AST(REG_ITMP3, REG_SP, 0 * 8);
503
504                 if (targetdisp == 0) {
505                         targetdisp = ((u4 *) cd->mcodeptr) - ((u4 *) cd->mcodebase);
506
507                         disp = dseg_add_functionptr(cd, asm_patcher_wrapper);
508                         M_ALD(REG_ITMP3, REG_PV, disp);
509                         M_JMP(REG_ZERO, REG_ITMP3);
510                 }
511                 else {
512                         disp = (((u4 *) cd->mcodebase) + targetdisp) -
513                                 (((u4 *) cd->mcodeptr) + 1);
514
515                         M_BR(disp);
516                 }
517         }
518 }
519
520
521 /* emit_replacement_stubs ******************************************************
522
523    Generates the code for the replacement stubs.
524
525 *******************************************************************************/
526
527 #if defined(ENABLE_REPLACEMENT)
528 void emit_replacement_stubs(jitdata *jd)
529 {
530         codegendata *cd;
531         codeinfo    *code;
532         rplpoint    *rplp;
533         s4           disp;
534         s4           i;
535 #if !defined(NDEBUG)
536         u1          *savedmcodeptr;
537 #endif
538
539         /* get required compiler data */
540
541         cd   = jd->cd;
542         code = jd->code;
543
544         rplp = code->rplpoints;
545
546         /* store beginning of replacement stubs */
547
548         code->replacementstubs = (u1*) (cd->mcodeptr - cd->mcodebase);
549
550         for (i = 0; i < code->rplpointcount; ++i, ++rplp) {
551                 /* do not generate stubs for non-trappable points */
552
553                 if (rplp->flags & RPLPOINT_FLAG_NOTRAP)
554                         continue;
555
556                 /* check code segment size */
557
558                 MCODECHECK(100);
559
560 #if !defined(NDEBUG)
561                 savedmcodeptr = cd->mcodeptr;
562 #endif
563
564                 /* create stack frame - 16-byte aligned */
565
566                 M_LSUB_IMM(REG_SP, 2 * 8, REG_SP);
567
568                 /* push address of `rplpoint` struct */
569
570                 disp = dseg_add_address(cd, rplp);
571                 M_ALD(REG_ITMP3, REG_PV, disp);
572                 M_AST(REG_ITMP3, REG_SP, 0 * 8);
573
574                 /* jump to replacement function */
575
576                 disp = dseg_add_functionptr(cd, asm_replacement_out);
577                 M_ALD(REG_ITMP3, REG_PV, disp);
578                 M_JMP(REG_ZERO, REG_ITMP3);
579
580                 assert((cd->mcodeptr - savedmcodeptr) == 4*REPLACEMENT_STUB_SIZE);
581         }
582 }
583 #endif /* defined(ENABLE_REPLACEMENT) */
584
585
586 /* emit_verbosecall_enter ******************************************************
587
588    Generates the code for the call trace.
589
590 *******************************************************************************/
591
592 #if !defined(NDEBUG)
593 void emit_verbosecall_enter(jitdata *jd)
594 {
595         methodinfo   *m;
596         codegendata  *cd;
597         registerdata *rd;
598         methoddesc   *md;
599         s4            disp;
600         s4            i, t;
601
602         /* get required compiler data */
603
604         m  = jd->m;
605         cd = jd->cd;
606         rd = jd->rd;
607
608         md = m->parseddesc;
609
610         /* mark trace code */
611
612         M_NOP;
613
614         M_LDA(REG_SP, REG_SP, -((ARG_CNT + TMP_CNT + 2) * 8));
615         M_AST(REG_RA, REG_SP, 1 * 8);
616
617         /* save argument registers */
618
619         for (i = 0; i < INT_ARG_CNT; i++)
620                 M_LST(abi_registers_integer_argument[i], REG_SP, (2 + i) * 8);
621
622         for (i = 0; i < FLT_ARG_CNT; i++)
623                 M_DST(abi_registers_float_argument[i], REG_SP, (2 + INT_ARG_CNT + i) * 8);
624
625         /* save temporary registers for leaf methods */
626
627         if (jd->isleafmethod) {
628                 for (i = 0; i < INT_TMP_CNT; i++)
629                         M_LST(rd->tmpintregs[i], REG_SP, (2 + ARG_CNT + i) * 8);
630
631                 for (i = 0; i < FLT_TMP_CNT; i++)
632                         M_DST(rd->tmpfltregs[i], REG_SP, (2 + ARG_CNT + INT_TMP_CNT + i) * 8);
633         }
634
635         /* load float arguments into integer registers */
636
637         for (i = 0; i < md->paramcount && i < INT_ARG_CNT; i++) {
638                 t = md->paramtypes[i].type;
639
640                 if (IS_FLT_DBL_TYPE(t)) {
641                         if (IS_2_WORD_TYPE(t)) {
642                                 M_DST(abi_registers_float_argument[i], REG_SP, 0 * 8);
643                                 M_LLD(abi_registers_integer_argument[i], REG_SP, 0 * 8);
644                         }
645                         else {
646                                 M_FST(abi_registers_float_argument[i], REG_SP, 0 * 8);
647                                 M_ILD(abi_registers_integer_argument[i], REG_SP, 0 * 8);
648                         }
649                 }
650         }
651
652         disp = dseg_add_address(cd, m);
653         M_ALD(REG_ITMP1, REG_PV, disp);
654         M_AST(REG_ITMP1, REG_SP, 0 * 8);
655         disp = dseg_add_functionptr(cd, builtin_verbosecall_enter);
656         M_ALD(REG_PV, REG_PV, disp);
657         M_JSR(REG_RA, REG_PV);
658         disp = (s4) (cd->mcodeptr - cd->mcodebase);
659         M_LDA(REG_PV, REG_RA, -disp);
660         M_ALD(REG_RA, REG_SP, 1 * 8);
661
662         /* restore argument registers */
663
664         for (i = 0; i < INT_ARG_CNT; i++)
665                 M_LLD(abi_registers_integer_argument[i], REG_SP, (2 + i) * 8);
666
667         for (i = 0; i < FLT_ARG_CNT; i++)
668                 M_DLD(abi_registers_float_argument[i], REG_SP, (2 + INT_ARG_CNT + i) * 8);
669
670         /* restore temporary registers for leaf methods */
671
672         if (jd->isleafmethod) {
673                 for (i = 0; i < INT_TMP_CNT; i++)
674                         M_LLD(rd->tmpintregs[i], REG_SP, (2 + ARG_CNT + i) * 8);
675
676                 for (i = 0; i < FLT_TMP_CNT; i++)
677                         M_DLD(rd->tmpfltregs[i], REG_SP, (2 + ARG_CNT + INT_TMP_CNT + i) * 8);
678         }
679
680         M_LDA(REG_SP, REG_SP, (ARG_CNT + TMP_CNT + 2) * 8);
681
682         /* mark trace code */
683
684         M_NOP;
685 }
686 #endif /* !defined(NDEBUG) */
687
688
689 /* emit_verbosecall_exit *******************************************************
690
691    Generates the code for the call trace.
692
693    void builtin_verbosecall_exit(s8 l, double d, float f, methodinfo *m);
694
695 *******************************************************************************/
696
697 #if !defined(NDEBUG)
698 void emit_verbosecall_exit(jitdata *jd)
699 {
700         methodinfo   *m;
701         codegendata  *cd;
702         registerdata *rd;
703         s4            disp;
704
705         /* get required compiler data */
706
707         m  = jd->m;
708         cd = jd->cd;
709         rd = jd->rd;
710
711         /* mark trace code */
712
713         M_NOP;
714
715         M_ASUB_IMM(REG_SP, 4 * 8, REG_SP);
716         M_AST(REG_RA, REG_SP, 0 * 8);
717
718         M_LST(REG_RESULT, REG_SP, 1 * 8);
719         M_DST(REG_FRESULT, REG_SP, 2 * 8);
720
721         M_MOV(REG_RESULT, REG_A0);
722         M_FMOV(REG_FRESULT, REG_FA1);
723         M_FMOV(REG_FRESULT, REG_FA2);
724
725         disp = dseg_add_address(cd, m);
726         M_ALD(REG_A3, REG_PV, disp);
727
728         disp = dseg_add_functionptr(cd, builtin_verbosecall_exit);
729         M_ALD(REG_PV, REG_PV, disp);
730         M_JSR(REG_RA, REG_PV);
731         disp = (cd->mcodeptr - cd->mcodebase);
732         M_LDA(REG_PV, REG_RA, -disp);
733
734         M_DLD(REG_FRESULT, REG_SP, 2 * 8);
735         M_LLD(REG_RESULT, REG_SP, 1 * 8);
736
737         M_ALD(REG_RA, REG_SP, 0 * 8);
738         M_AADD_IMM(REG_SP, 4 * 8, REG_SP);
739
740         /* mark trace code */
741
742         M_NOP;
743 }
744 #endif /* !defined(NDEBUG) */
745
746
747 /*
748  * These are local overrides for various environment variables in Emacs.
749  * Please do not remove this and leave it at the end of the file, where
750  * Emacs will automagically detect them.
751  * ---------------------------------------------------------------------
752  * Local variables:
753  * mode: c
754  * indent-tabs-mode: t
755  * c-basic-offset: 4
756  * tab-width: 4
757  * End:
758  * vim:noexpandtab:sw=4:ts=4:
759  */