Mercurial > hg > truffle
annotate truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleOptions.java @ 22414:7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
author | Christian Wirth <christian.wirth@oracle.com> |
---|---|
date | Wed, 25 Nov 2015 15:53:11 +0100 |
parents | 4db968103a7c |
children | 1c39c96a1703 |
rev | line source |
---|---|
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
1 /* |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
2 * Copyright (c) 2012, 2012, Oracle and/or its affiliates. All rights reserved. |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
4 * |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
5 * This code is free software; you can redistribute it and/or modify it |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
6 * under the terms of the GNU General Public License version 2 only, as |
11279
494b818b527c
Adding "Classpath" exception to the classes in the com.oracle.truffle.api and the com.oracle.truffle.api.dsl package.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
10690
diff
changeset
|
7 * published by the Free Software Foundation. Oracle designates this |
494b818b527c
Adding "Classpath" exception to the classes in the com.oracle.truffle.api and the com.oracle.truffle.api.dsl package.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
10690
diff
changeset
|
8 * particular file as subject to the "Classpath" exception as provided |
494b818b527c
Adding "Classpath" exception to the classes in the com.oracle.truffle.api and the com.oracle.truffle.api.dsl package.
Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
parents:
10690
diff
changeset
|
9 * by Oracle in the LICENSE file that accompanied this code. |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
10 * |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
11 * This code is distributed in the hope that it will be useful, but WITHOUT |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
14 * version 2 for more details (a copy is included in the LICENSE file that |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
15 * accompanied this code). |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
16 * |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
17 * You should have received a copy of the GNU General Public License version |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
18 * 2 along with this work; if not, write to the Free Software Foundation, |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
20 * |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
22 * or visit www.oracle.com if you need additional information or have any |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
23 * questions. |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
24 */ |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
25 package com.oracle.truffle.api; |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
26 |
22414
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
27 import java.security.AccessController; |
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
28 import java.security.PrivilegedAction; |
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
29 |
22157
dc83cc1f94f2
Using fully qualified imports
Jaroslav Tulach <jaroslav.tulach@oracle.com>
parents:
22111
diff
changeset
|
30 import com.oracle.truffle.api.nodes.NodeCost; |
dc83cc1f94f2
Using fully qualified imports
Jaroslav Tulach <jaroslav.tulach@oracle.com>
parents:
22111
diff
changeset
|
31 import com.oracle.truffle.api.nodes.NodeInfo; |
22414
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
32 import com.oracle.truffle.api.source.Source; |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
33 |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
34 /** |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
35 * Class containing general Truffle options. |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
36 */ |
22063
b960accdd9b5
No instances of TruffleOptions
Jaroslav Tulach <jaroslav.tulach@oracle.com>
parents:
21951
diff
changeset
|
37 public final class TruffleOptions { |
b960accdd9b5
No instances of TruffleOptions
Jaroslav Tulach <jaroslav.tulach@oracle.com>
parents:
21951
diff
changeset
|
38 private TruffleOptions() { |
b960accdd9b5
No instances of TruffleOptions
Jaroslav Tulach <jaroslav.tulach@oracle.com>
parents:
21951
diff
changeset
|
39 } |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
40 |
13685
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
41 /** |
13874
c35d86f53ace
fix Truffle JavaDoc
Christian Wirth <christian.wirth@oracle.com>
parents:
13685
diff
changeset
|
42 * Enables/disables the rewriting of traces in the Truffle runtime to stdout. |
13685
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
43 * <p> |
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
44 * Can be set with {@code -Dtruffle.TraceRewrites=true}. |
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
45 */ |
19358
5ea169a3bf81
make various fields final
Lukas Stadler <lukas.stadler@oracle.com>
parents:
18961
diff
changeset
|
46 public static final boolean TraceRewrites; |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
47 |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
48 /** |
10690
a0309f88306c
Added truffle option to enable detailed rewrite messages. Disabled by default.
Christian Humer <christian.humer@gmail.com>
parents:
10676
diff
changeset
|
49 * Enables the generation of detailed rewrite reasons. Enabling this may introduce some overhead |
a0309f88306c
Added truffle option to enable detailed rewrite messages. Disabled by default.
Christian Humer <christian.humer@gmail.com>
parents:
10676
diff
changeset
|
50 * for rewriting nodes. |
13685
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
51 * <p> |
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
52 * Can be set with {@code -Dtruffle.DetailedRewriteReasons=true}. |
10690
a0309f88306c
Added truffle option to enable detailed rewrite messages. Disabled by default.
Christian Humer <christian.humer@gmail.com>
parents:
10676
diff
changeset
|
53 */ |
16779
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
54 public static final boolean DetailedRewriteReasons; |
10690
a0309f88306c
Added truffle option to enable detailed rewrite messages. Disabled by default.
Christian Humer <christian.humer@gmail.com>
parents:
10676
diff
changeset
|
55 |
a0309f88306c
Added truffle option to enable detailed rewrite messages. Disabled by default.
Christian Humer <christian.humer@gmail.com>
parents:
10676
diff
changeset
|
56 /** |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
57 * Filters rewrites that do not contain the given string in the qualified name of the source or |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
58 * target class hierarchy. |
13685
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
59 * <p> |
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
60 * Can be set with {@code -Dtruffle.TraceRewritesFilterClass=name}. |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
61 */ |
16779
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
62 public static String TraceRewritesFilterClass; |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
63 |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
64 /** |
14564
5d1308c78ddc
Truffle: Introduced NodeCost as a replacement for NodeInfo.Kind.
Christian Humer <christian.humer@gmail.com>
parents:
13874
diff
changeset
|
65 * Filters rewrites which does not contain the {@link NodeCost} in its source {@link NodeInfo}. |
5d1308c78ddc
Truffle: Introduced NodeCost as a replacement for NodeInfo.Kind.
Christian Humer <christian.humer@gmail.com>
parents:
13874
diff
changeset
|
66 * If no {@link NodeInfo} is defined the element is filtered if the filter value is set. |
13685
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
67 * <p> |
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
68 * Can be set with |
14564
5d1308c78ddc
Truffle: Introduced NodeCost as a replacement for NodeInfo.Kind.
Christian Humer <christian.humer@gmail.com>
parents:
13874
diff
changeset
|
69 * {@code -Dtruffle.TraceRewritesFilterFromCost=NONE|MONOMORPHIC|POLYMORPHIC|MEGAMORPHIC}. |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
70 */ |
16779
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
71 public static NodeCost TraceRewritesFilterFromCost; |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
72 |
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
73 /** |
14564
5d1308c78ddc
Truffle: Introduced NodeCost as a replacement for NodeInfo.Kind.
Christian Humer <christian.humer@gmail.com>
parents:
13874
diff
changeset
|
74 * Filters rewrites which does not contain the {@link NodeCost} in its target {@link NodeInfo}. |
5d1308c78ddc
Truffle: Introduced NodeCost as a replacement for NodeInfo.Kind.
Christian Humer <christian.humer@gmail.com>
parents:
13874
diff
changeset
|
75 * If no {@link NodeInfo} is defined the element is filtered if the filter value is set. |
13685
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
76 * <p> |
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
77 * Can be set with |
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
78 * {@code -Dtruffle.TraceRewritesFilterToKind=UNINITIALIZED|SPECIALIZED|POLYMORPHIC|GENERIC}. |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
79 */ |
16779
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
80 public static NodeCost TraceRewritesFilterToCost; |
13685
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
81 |
16151
76895499bc88
Add facility to create JSON dump of AST creation/rewriting
Christian Wirth <christian.wirth@oracle.com>
parents:
14564
diff
changeset
|
82 /** |
76895499bc88
Add facility to create JSON dump of AST creation/rewriting
Christian Wirth <christian.wirth@oracle.com>
parents:
14564
diff
changeset
|
83 * Enables the dumping of Node creations and AST rewrites in JSON format. |
76895499bc88
Add facility to create JSON dump of AST creation/rewriting
Christian Wirth <christian.wirth@oracle.com>
parents:
14564
diff
changeset
|
84 * <p> |
76895499bc88
Add facility to create JSON dump of AST creation/rewriting
Christian Wirth <christian.wirth@oracle.com>
parents:
14564
diff
changeset
|
85 * Can be set with {@code -Dtruffle.TraceASTJSON=true}. |
76895499bc88
Add facility to create JSON dump of AST creation/rewriting
Christian Wirth <christian.wirth@oracle.com>
parents:
14564
diff
changeset
|
86 */ |
16779
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
87 public static final boolean TraceASTJSON; |
16151
76895499bc88
Add facility to create JSON dump of AST creation/rewriting
Christian Wirth <christian.wirth@oracle.com>
parents:
14564
diff
changeset
|
88 |
22330
4db968103a7c
add TruffleOptions.AOT
Andreas Woess <andreas.woess@oracle.com>
parents:
22157
diff
changeset
|
89 /** |
22414
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
90 * Enables auto-reload of file-based {@link Source} when the file is changed on disk. |
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
91 * <p> |
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
92 * Can be set with {@code -Dtruffle.AutoReloadFileSource=true}. |
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
93 */ |
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
94 public static final boolean AutoReloadFileSource; |
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
95 |
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
96 /** |
22330
4db968103a7c
add TruffleOptions.AOT
Andreas Woess <andreas.woess@oracle.com>
parents:
22157
diff
changeset
|
97 * Forces ahead-of-time initialization. |
4db968103a7c
add TruffleOptions.AOT
Andreas Woess <andreas.woess@oracle.com>
parents:
22157
diff
changeset
|
98 */ |
4db968103a7c
add TruffleOptions.AOT
Andreas Woess <andreas.woess@oracle.com>
parents:
22157
diff
changeset
|
99 public static final boolean AOT; |
4db968103a7c
add TruffleOptions.AOT
Andreas Woess <andreas.woess@oracle.com>
parents:
22157
diff
changeset
|
100 |
14564
5d1308c78ddc
Truffle: Introduced NodeCost as a replacement for NodeInfo.Kind.
Christian Humer <christian.humer@gmail.com>
parents:
13874
diff
changeset
|
101 private static NodeCost parseNodeInfoKind(String kind) { |
13685
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
102 if (kind == null) { |
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
103 return null; |
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
104 } |
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
105 |
14564
5d1308c78ddc
Truffle: Introduced NodeCost as a replacement for NodeInfo.Kind.
Christian Humer <christian.humer@gmail.com>
parents:
13874
diff
changeset
|
106 return NodeCost.valueOf(kind); |
13685
29a6cb0783de
Allow TruffleOptions to be set using system properties.
Chris Seaton <chris.seaton@oracle.com>
parents:
11279
diff
changeset
|
107 } |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
108 |
16779
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
109 static { |
22414
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
110 final boolean[] values = new boolean[5]; |
16779
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
111 AccessController.doPrivileged(new PrivilegedAction<Void>() { |
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
112 public Void run() { |
19358
5ea169a3bf81
make various fields final
Lukas Stadler <lukas.stadler@oracle.com>
parents:
18961
diff
changeset
|
113 values[0] = Boolean.getBoolean("truffle.TraceRewrites"); |
16779
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
114 TraceRewritesFilterClass = System.getProperty("truffle.TraceRewritesFilterClass"); |
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
115 TraceRewritesFilterFromCost = parseNodeInfoKind(System.getProperty("truffle.TraceRewritesFilterFromCost")); |
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
116 TraceRewritesFilterToCost = parseNodeInfoKind(System.getProperty("truffle.TraceRewritesFilterToCost")); |
19358
5ea169a3bf81
make various fields final
Lukas Stadler <lukas.stadler@oracle.com>
parents:
18961
diff
changeset
|
117 values[1] = Boolean.getBoolean("truffle.DetailedRewriteReasons"); |
5ea169a3bf81
make various fields final
Lukas Stadler <lukas.stadler@oracle.com>
parents:
18961
diff
changeset
|
118 values[2] = Boolean.getBoolean("truffle.TraceASTJSON"); |
22330
4db968103a7c
add TruffleOptions.AOT
Andreas Woess <andreas.woess@oracle.com>
parents:
22157
diff
changeset
|
119 values[3] = Boolean.getBoolean("com.oracle.truffle.aot"); |
22414
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
120 values[4] = Boolean.getBoolean("truffle.AutoReloadFileSource"); |
16779
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
121 return null; |
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
122 } |
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
123 }); |
19358
5ea169a3bf81
make various fields final
Lukas Stadler <lukas.stadler@oracle.com>
parents:
18961
diff
changeset
|
124 TraceRewrites = values[0]; |
5ea169a3bf81
make various fields final
Lukas Stadler <lukas.stadler@oracle.com>
parents:
18961
diff
changeset
|
125 DetailedRewriteReasons = values[1]; |
5ea169a3bf81
make various fields final
Lukas Stadler <lukas.stadler@oracle.com>
parents:
18961
diff
changeset
|
126 TraceASTJSON = values[2]; |
22330
4db968103a7c
add TruffleOptions.AOT
Andreas Woess <andreas.woess@oracle.com>
parents:
22157
diff
changeset
|
127 AOT = values[3]; |
22414
7015a77b222f
Guarded the auto-reloading of files into FileSource with a TruffleOption (false by default).
Christian Wirth <christian.wirth@oracle.com>
parents:
22330
diff
changeset
|
128 AutoReloadFileSource = values[4]; |
16779
e52ad0d3b7d6
put some security sensitive actions into a privileged action
Doug Simon <doug.simon@oracle.com>
parents:
16151
diff
changeset
|
129 } |
10590
6eb8d63cea34
Added a feature to trace rewrites of truffle nodes.
Christian Humer <christian.humer@gmail.com>
parents:
diff
changeset
|
130 } |