Java Code Examples for jdk.nashorn.internal.runtime.Context#printStackTrace()
The following examples show how to use
jdk.nashorn.internal.runtime.Context#printStackTrace() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CodeGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
@Override public Node leaveFunctionNode(final FunctionNode functionNode) { try { if(emittedMethods.add(functionNode.getName())) { method.end(); // wrap up this method unit = lc.popCompileUnit(functionNode.getCompileUnit()); method = lc.popMethodEmitter(method); LOG.info("=== END ", functionNode.getName()); } final FunctionNode newFunctionNode = functionNode.setState(lc, CompilationState.EMITTED); newFunctionObject(newFunctionNode, functionNode); return newFunctionNode; } catch (final Throwable t) { Context.printStackTrace(t); final VerifyError e = new VerifyError("Code generation bug in \"" + functionNode.getName() + "\": likely stack misaligned: " + t + " " + functionNode.getSource().getName()); e.initCause(t); throw e; } }
Example 2
Source File: CodeGenerator.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
@Override public Node leaveFunctionNode(final FunctionNode functionNode) { try { if(emittedMethods.add(functionNode.getName())) { method.end(); // wrap up this method unit = lc.popCompileUnit(functionNode.getCompileUnit()); method = lc.popMethodEmitter(method); LOG.info("=== END ", functionNode.getName()); } final FunctionNode newFunctionNode = functionNode.setState(lc, CompilationState.EMITTED); newFunctionObject(newFunctionNode, functionNode); return newFunctionNode; } catch (final Throwable t) { Context.printStackTrace(t); final VerifyError e = new VerifyError("Code generation bug in \"" + functionNode.getName() + "\": likely stack misaligned: " + t + " " + functionNode.getSource().getName()); e.initCause(t); throw e; } }
Example 3
Source File: CodeGenerator.java From nashorn with GNU General Public License v2.0 | 6 votes |
@Override public Node leaveFunctionNode(final FunctionNode functionNode) { try { if(emittedMethods.add(functionNode.getName())) { method.end(); // wrap up this method unit = lc.popCompileUnit(functionNode.getCompileUnit()); method = lc.popMethodEmitter(method); LOG.info("=== END ", functionNode.getName()); } final FunctionNode newFunctionNode = functionNode.setState(lc, CompilationState.EMITTED); newFunctionObject(newFunctionNode, functionNode); return newFunctionNode; } catch (final Throwable t) { Context.printStackTrace(t); final VerifyError e = new VerifyError("Code generation bug in \"" + functionNode.getName() + "\": likely stack misaligned: " + t + " " + functionNode.getSource().getName()); e.initCause(t); throw e; } }