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 */
013package org.mmtk.utility;
014
015import org.vmmagic.unboxed.*;
016
017/**
018 * The constants needed when storing events and then generating the trace.
019 */
020public final class TracingConstants {
021  public static final Word TRACE_EXACT_ALLOC = Word.zero();
022  public static final Word TRACE_BOOT_ALLOC = Word.one().lsh(0);
023  public static final Word TRACE_ALLOC = Word.one().lsh(1);
024  public static final Word TRACE_DEATH = Word.one().lsh(2);
025  public static final Word TRACE_FIELD_SET = Word.one().lsh(3);
026  public static final Word TRACE_ARRAY_SET = Word.one().lsh(4);
027  public static final Word TRACE_TIB_SET = Word.one().lsh(5);
028  public static final Word TRACE_STATIC_SET = Word.one().lsh(6);
029  public static final Word TRACE_BOOTSTART = Word.one().lsh(7);
030  public static final Word TRACE_BOOTEND = Word.one().lsh(8);
031  public static final Word TRACE_GCSTART = Word.one().lsh(9);
032  public static final Word TRACE_GCEND = Word.one().lsh(10);
033  public static final Word TRACE_GCROOT = Word.one().lsh(11);
034  public static final Word TRACE_GCBAR = Word.one().lsh(12);
035  public static final Word TRACE_THREAD_SWITCH = Word.one().lsh(13);
036  public static final Word TRACE_STACKDELTA = Word.one().lsh(14);
037  public static final Word TRACE_ROOTPTR = Word.one().lsh(15);
038  public static final Word TRACE_EXACT_IMMORTAL_ALLOC = Word.one().lsh(16);
039  public static final Word TRACE_IMMORTAL_ALLOC = Word.one().lsh(17);
040
041  private TracingConstants() {
042    // prevent instantiation
043  }
044
045}