Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleOptions.java @ 10590:6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 26 Jun 2013 17:21:59 +0200 |
parents | |
children | ebf5c5c23564 |
comparison
equal
deleted
inserted
replaced
10541:9599e1a01812 | 10590:6eb8d63cea34 |
---|---|
1 /* | |
2 * Copyright (c) 2012, 2012, Oracle and/or its affiliates. All rights reserved. | |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
4 * | |
5 * This code is free software; you can redistribute it and/or modify it | |
6 * under the terms of the GNU General Public License version 2 only, as | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 * or visit www.oracle.com if you need additional information or have any | |
21 * questions. | |
22 */ | |
23 package com.oracle.truffle.api; | |
24 | |
25 import com.oracle.truffle.api.nodes.*; | |
26 import com.oracle.truffle.api.nodes.NodeInfo.Kind; | |
27 | |
28 /** | |
29 * Class containing general Truffle options. | |
30 */ | |
31 public class TruffleOptions { | |
32 | |
33 /** Enables/disables the rewriting of traces in the truffle runtime to stdout. */ | |
34 public static final boolean TraceRewrites = true; | |
35 | |
36 /** | |
37 * Filters rewrites that do not contain the given string in the qualified name of the source or | |
38 * target class hierarchy. | |
39 */ | |
40 public static final String TraceRewritesFilterClass = null; | |
41 | |
42 /** | |
43 * Filters rewrites which does not contain the {@link Kind} in its source {@link NodeInfo}. If | |
44 * no {@link NodeInfo} is defined the element is filtered if the filter value is set. | |
45 */ | |
46 public static final NodeInfo.Kind TraceRewritesFilterFromKind = null; | |
47 | |
48 /** | |
49 * Filters rewrites which does not contain the {@link Kind} in its target {@link NodeInfo}. If | |
50 * no {@link NodeInfo} is defined the element is filtered if the filter value is set. | |
51 */ | |
52 public static final NodeInfo.Kind TraceRewritesFilterToKind = null; | |
53 | |
54 } |