001    /*
002     *  This file is part of the Jikes RVM project (http://jikesrvm.org).
003     *
004     *  This file is licensed to You under the Eclipse Public License (EPL);
005     *  You may not use this file except in compliance with the License. You
006     *  may obtain a copy of the License at
007     *
008     *      http://www.opensource.org/licenses/eclipse-1.0.php
009     *
010     *  See the COPYRIGHT.txt file distributed with this work for information
011     *  regarding copyright ownership.
012     */
013    package org.mmtk.utility;
014    
015    import org.vmmagic.unboxed.*;
016    
017    /**
018     * The constants needed when storing events and then generating the trace.
019     */
020    public interface TracingConstants {
021      Word TRACE_EXACT_ALLOC = Word.zero();
022      Word TRACE_BOOT_ALLOC = Word.one().lsh(0);
023      Word TRACE_ALLOC = Word.one().lsh(1);
024      Word TRACE_DEATH = Word.one().lsh(2);
025      Word TRACE_FIELD_SET = Word.one().lsh(3);
026      Word TRACE_ARRAY_SET = Word.one().lsh(4);
027      Word TRACE_TIB_SET = Word.one().lsh(5);
028      Word TRACE_STATIC_SET = Word.one().lsh(6);
029      Word TRACE_BOOTSTART = Word.one().lsh(7);
030      Word TRACE_BOOTEND = Word.one().lsh(8);
031      Word TRACE_GCSTART = Word.one().lsh(9);
032      Word TRACE_GCEND = Word.one().lsh(10);
033      Word TRACE_GCROOT = Word.one().lsh(11);
034      Word TRACE_GCBAR = Word.one().lsh(12);
035      Word TRACE_THREAD_SWITCH = Word.one().lsh(13);
036      Word TRACE_STACKDELTA = Word.one().lsh(14);
037      Word TRACE_ROOTPTR = Word.one().lsh(15);
038      Word TRACE_EXACT_IMMORTAL_ALLOC = Word.one().lsh(16);
039      Word TRACE_IMMORTAL_ALLOC = Word.one().lsh(17);
040    }
041