Java Code Examples for jdk.nashorn.internal.ir.FunctionNode#getName()
The following examples show how to use
jdk.nashorn.internal.ir.FunctionNode#getName() .
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 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; } }
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 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 4
Source File: ApplySpecialization.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Try to do the apply to call transformation * @return true if successful, false otherwise */ @Override public Node leaveFunctionNode(final FunctionNode functionNode) { FunctionNode newFunctionNode = functionNode; final String functionName = newFunctionNode.getName(); if (changed.contains(newFunctionNode.getId())) { newFunctionNode = newFunctionNode.clearFlag(lc, FunctionNode.USES_ARGUMENTS). setFlag(lc, FunctionNode.HAS_APPLY_TO_CALL_SPECIALIZATION). setParameters(lc, explodedArguments.peek()); if (log.isEnabled()) { log.info("Success: ", massageURL(newFunctionNode.getSource().getURL()), '.', functionName, "' id=", newFunctionNode.getId(), " params=", callSiteTypes.peek()); } } callSiteTypes.pop(); explodedArguments.pop(); return newFunctionNode; }
Example 5
Source File: ApplySpecialization.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
/** * Try to do the apply to call transformation * @return true if successful, false otherwise */ @Override public Node leaveFunctionNode(final FunctionNode functionNode) { FunctionNode newFunctionNode = functionNode; final String functionName = newFunctionNode.getName(); if (changed.contains(newFunctionNode.getId())) { newFunctionNode = newFunctionNode.clearFlag(lc, FunctionNode.USES_ARGUMENTS). setFlag(lc, FunctionNode.HAS_APPLY_TO_CALL_SPECIALIZATION). setParameters(lc, explodedArguments.peek()); if (log.isEnabled()) { log.info("Success: ", massageURL(newFunctionNode.getSource().getURL()), '.', functionName, "' id=", newFunctionNode.getId(), " params=", callSiteTypes.peek()); } } callSiteTypes.pop(); explodedArguments.pop(); return newFunctionNode; }
Example 6
Source File: ApplySpecialization.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Try to do the apply to call transformation * @return true if successful, false otherwise */ @Override public Node leaveFunctionNode(final FunctionNode functionNode) { FunctionNode newFunctionNode = functionNode; final String functionName = newFunctionNode.getName(); if (changed.contains(newFunctionNode.getId())) { newFunctionNode = newFunctionNode.clearFlag(lc, FunctionNode.USES_ARGUMENTS). setFlag(lc, FunctionNode.HAS_APPLY_TO_CALL_SPECIALIZATION). setParameters(lc, explodedArguments.peek()); if (log.isEnabled()) { log.info("Success: ", massageURL(newFunctionNode.getSource().getURL()), '.', functionName, "' id=", newFunctionNode.getId(), " params=", callSiteTypes.peek()); } } callSiteTypes.pop(); explodedArguments.pop(); return newFunctionNode; }
Example 7
Source File: ApplySpecialization.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Try to do the apply to call transformation * @return true if successful, false otherwise */ @Override public Node leaveFunctionNode(final FunctionNode functionNode) { FunctionNode newFunctionNode = functionNode; final String functionName = newFunctionNode.getName(); if (changed.contains(newFunctionNode.getId())) { newFunctionNode = newFunctionNode.clearFlag(lc, FunctionNode.USES_ARGUMENTS). setFlag(lc, FunctionNode.HAS_APPLY_TO_CALL_SPECIALIZATION). setParameters(lc, explodedArguments.peek()); if (log.isEnabled()) { log.info("Success: ", massageURL(newFunctionNode.getSource().getURL()), '.', functionName, "' id=", newFunctionNode.getId(), " params=", callSiteTypes.peek()); } } callSiteTypes.pop(); explodedArguments.pop(); return newFunctionNode; }
Example 8
Source File: ApplySpecialization.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Try to do the apply to call transformation * @return true if successful, false otherwise */ @Override public Node leaveFunctionNode(final FunctionNode functionNode) { FunctionNode newFunctionNode = functionNode; final String functionName = newFunctionNode.getName(); if (changed.contains(newFunctionNode.getId())) { newFunctionNode = newFunctionNode.clearFlag(lc, FunctionNode.USES_ARGUMENTS). setFlag(lc, FunctionNode.HAS_APPLY_TO_CALL_SPECIALIZATION). setParameters(lc, explodedArguments.peek()); if (log.isEnabled()) { log.info("Success: ", massageURL(newFunctionNode.getSource().getURL()), '.', functionName, "' id=", newFunctionNode.getId(), " params=", callSiteTypes.peek()); } } callSiteTypes.pop(); explodedArguments.pop(); return newFunctionNode; }
Example 9
Source File: ApplySpecialization.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Try to do the apply to call transformation * @return true if successful, false otherwise */ @Override public Node leaveFunctionNode(final FunctionNode functionNode) { FunctionNode newFunctionNode = functionNode; final String functionName = newFunctionNode.getName(); if (changed.contains(newFunctionNode.getId())) { newFunctionNode = newFunctionNode.clearFlag(lc, FunctionNode.USES_ARGUMENTS). setFlag(lc, FunctionNode.HAS_APPLY_TO_CALL_SPECIALIZATION). setParameters(lc, explodedArguments.peek()); if (log.isEnabled()) { log.info("Success: ", massageURL(newFunctionNode.getSource().getURL()), '.', functionName, "' id=", newFunctionNode.getId(), " params=", callSiteTypes.peek()); } } callSiteTypes.pop(); explodedArguments.pop(); return newFunctionNode; }
Example 10
Source File: ApplySpecialization.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Try to do the apply to call transformation * @return true if successful, false otherwise */ @Override public Node leaveFunctionNode(final FunctionNode functionNode) { FunctionNode newFunctionNode = functionNode; final String functionName = newFunctionNode.getName(); if (changed.contains(newFunctionNode.getId())) { newFunctionNode = newFunctionNode.clearFlag(lc, FunctionNode.USES_ARGUMENTS). setFlag(lc, FunctionNode.HAS_APPLY_TO_CALL_SPECIALIZATION). setParameters(lc, explodedArguments.peek()); if (log.isEnabled()) { log.info("Success: ", massageURL(newFunctionNode.getSource().getURL()), '.', functionName, "' id=", newFunctionNode.getId(), " params=", callSiteTypes.peek()); } } callSiteTypes.pop(); explodedArguments.pop(); return newFunctionNode.setState(lc, CompilationState.BUILTINS_TRANSFORMED); }
Example 11
Source File: ApplySpecialization.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
TransformFailedException(final FunctionNode fn, final String message) { super(massageURL(fn.getSource().getURL()) + '.' + fn.getName() + " => " + message, null, false, false); }
Example 12
Source File: ApplySpecialization.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
TransformFailedException(final FunctionNode fn, final String message) { super(massageURL(fn.getSource().getURL()) + '.' + fn.getName() + " => " + message, null, false, false); }
Example 13
Source File: ApplySpecialization.java From hottub with GNU General Public License v2.0 | 4 votes |
TransformFailedException(final FunctionNode fn, final String message) { super(massageURL(fn.getSource().getURL()) + '.' + fn.getName() + " => " + message, null, false, false); }
Example 14
Source File: Compiler.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
private static String lazyTag(final FunctionNode functionNode) { if (functionNode.isLazy()) { return '$' + LAZY.symbolName() + '$' + functionNode.getName(); } return ""; }
Example 15
Source File: ApplySpecialization.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
TransformFailedException(final FunctionNode fn, final String message) { super(massageURL(fn.getSource().getURL()) + '.' + fn.getName() + " => " + message, null, false, false); }
Example 16
Source File: Compiler.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private static String lazyTag(final FunctionNode functionNode) { if (functionNode.isLazy()) { return '$' + LAZY.symbolName() + '$' + functionNode.getName(); } return ""; }
Example 17
Source File: ApplySpecialization.java From jdk8u_nashorn with GNU General Public License v2.0 | 4 votes |
TransformFailedException(final FunctionNode fn, final String message) { super(massageURL(fn.getSource().getURL()) + '.' + fn.getName() + " => " + message, null, false, false); }
Example 18
Source File: ApplySpecialization.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
TransformFailedException(final FunctionNode fn, final String message) { super(massageURL(fn.getSource().getURL()) + '.' + fn.getName() + " => " + message, null, false, false); }
Example 19
Source File: Compiler.java From nashorn with GNU General Public License v2.0 | 4 votes |
private static String lazyTag(final FunctionNode functionNode) { if (functionNode.isLazy()) { return '$' + LAZY.symbolName() + '$' + functionNode.getName(); } return ""; }
Example 20
Source File: ApplySpecialization.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
TransformFailedException(final FunctionNode fn, final String message) { super(massageURL(fn.getSource().getURL()) + '.' + fn.getName() + " => " + message, null, false, false); }