File tree Expand file tree Collapse file tree 4 files changed +10
-15
lines changed
com.oracle.graal.python.shell/src/com/oracle/graal/python/shell
com.oracle.graal.python/src/com/oracle/graal/python
builtins/objects/exception Expand file tree Collapse file tree 4 files changed +10
-15
lines changed Original file line number Diff line number Diff line change @@ -554,12 +554,6 @@ protected void printHelp(OptionCategory maxCategory) {
554
554
"GRAAL_PYTHON_OPTIONS: This environment variable can include default options that\n " +
555
555
" are always passed to the launcher. These are not shell expanded and given to\n " +
556
556
" the launcher as-is." );
557
- if (maxCategory .compareTo (OptionCategory .DEBUG ) >= 0 ) {
558
- print ("\n GraalPython performance debugging options:\n " +
559
- "-debug-perf : Enable tracing of Truffle compilations and its warnings\n " +
560
- "-dump : Enable dumping of compilation graphs to IGV\n " +
561
- "-compile-truffle-immediately : Start compiling on first invocation and throw compilation exceptions" );
562
- }
563
557
}
564
558
565
559
@ Override
Original file line number Diff line number Diff line change 40
40
*/
41
41
package com .oracle .graal .python .builtins .objects .exception ;
42
42
43
- import java .util .ArrayList ;
44
43
import java .util .Iterator ;
45
44
import java .util .List ;
46
45
61
60
import com .oracle .graal .python .runtime .sequence .storage .SequenceStorage ;
62
61
import com .oracle .truffle .api .CompilerAsserts ;
63
62
import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
63
+ import com .oracle .truffle .api .TruffleStackTrace ;
64
64
import com .oracle .truffle .api .TruffleStackTraceElement ;
65
65
import com .oracle .truffle .api .frame .Frame ;
66
66
import com .oracle .truffle .api .nodes .RootNode ;
@@ -191,8 +191,8 @@ public List<TruffleStackTraceElement> getStackTrace() {
191
191
@ TruffleBoundary
192
192
public void reifyException () {
193
193
if (stackTrace == null && traceback == null ) {
194
- TruffleStackTraceElement .fillIn (exception );
195
- stackTrace = new ArrayList <>( TruffleStackTraceElement . getStackTrace (exception ) );
194
+ TruffleStackTrace .fillIn (exception );
195
+ stackTrace = TruffleStackTrace . getStacktrace (exception );
196
196
Iterator <TruffleStackTraceElement > iter = stackTrace .iterator ();
197
197
while (iter .hasNext ()) {
198
198
TruffleStackTraceElement element = iter .next ();
Original file line number Diff line number Diff line change @@ -84,16 +84,16 @@ private PythonOptions() {
84
84
@ Option (category = OptionCategory .USER , help = "Equivalent to the Python -v flag. Turn on verbose mode." ) //
85
85
public static final OptionKey <Boolean > VerboseFlag = new OptionKey <>(false );
86
86
87
- @ Option (category = OptionCategory .DEBUG , help = "Expose internal sources as normal sources, so they will show up in the debugger and stacks" ) //
87
+ @ Option (category = OptionCategory .INTERNAL , help = "Expose internal sources as normal sources, so they will show up in the debugger and stacks" ) //
88
88
public static final OptionKey <Boolean > ExposeInternalSources = new OptionKey <>(false );
89
89
90
- @ Option (category = OptionCategory .DEBUG , help = "Print the java stacktrace if enabled" ) //
90
+ @ Option (category = OptionCategory .INTERNAL , help = "Print the java stacktrace if enabled" ) //
91
91
public static final OptionKey <Boolean > WithJavaStacktrace = new OptionKey <>(false );
92
92
93
- @ Option (category = OptionCategory .DEBUG , help = "" ) //
93
+ @ Option (category = OptionCategory .INTERNAL , help = "" ) //
94
94
public static final OptionKey <Boolean > CatchGraalPythonExceptionForUnitTesting = new OptionKey <>(false );
95
95
96
- @ Option (category = OptionCategory .DEBUG , help = "Enable catching all Exceptions in generic try-catch statements." ) //
96
+ @ Option (category = OptionCategory .INTERNAL , help = "Enable catching all Exceptions in generic try-catch statements." ) //
97
97
public static final OptionKey <Boolean > CatchAllExceptions = new OptionKey <>(false );
98
98
99
99
@ Option (category = OptionCategory .EXPERT , help = "" ) //
Original file line number Diff line number Diff line change 44
44
import java .util .List ;
45
45
import java .util .ListIterator ;
46
46
47
- import com .oracle .truffle .api .TruffleStackTraceElement ;
48
47
import com .oracle .truffle .api .CompilerDirectives .TruffleBoundary ;
48
+ import com .oracle .truffle .api .TruffleStackTrace ;
49
+ import com .oracle .truffle .api .TruffleStackTraceElement ;
49
50
import com .oracle .truffle .api .nodes .Node ;
50
51
import com .oracle .truffle .api .source .SourceSection ;
51
52
@@ -55,7 +56,7 @@ private ExceptionUtils() {
55
56
56
57
@ TruffleBoundary
57
58
public static void printPythonLikeStackTrace (PException e ) {
58
- List <TruffleStackTraceElement > stackTrace = TruffleStackTraceElement . getStackTrace (e );
59
+ List <TruffleStackTraceElement > stackTrace = TruffleStackTrace . getStacktrace (e );
59
60
ArrayList <String > stack = new ArrayList <>();
60
61
for (TruffleStackTraceElement frame : stackTrace ) {
61
62
You can’t perform that action at this time.
0 commit comments