Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 jdk.scripting.nashorn.jmod - Scripting Nashorn Module
JDK 11 jdk.scripting.nashorn.jmod is the JMOD file for JDK 11 Scripting Nashorn module.
JDK 11 Scripting Nashorn module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.scripting.nashorn.jmod.
JDK 11 Scripting Nashorn module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Scripting Nashorn module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.scripting.nashorn.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/nashorn/internal/ir/OptimisticLexicalContext.java
/* * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.nashorn.internal.ir; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; import java.util.Deque; import java.util.List; import jdk.nashorn.internal.codegen.types.Type; /** * Lexical context that keeps track of optimistic assumptions (if any) * made during code generation. Used from Attr and FinalizeTypes */ public class OptimisticLexicalContext extends LexicalContext { private final boolean isEnabled; class Assumption { Symbol symbol; Type type; Assumption(final Symbol symbol, final Type type) { this.symbol = symbol; this.type = type; } @Override public String toString() { return symbol.getName() + "=" + type; } } /** Optimistic assumptions that could be made per function */ private final Deque<List<Assumption>> optimisticAssumptions = new ArrayDeque<>(); /** * Constructor * @param isEnabled are optimistic types enabled? */ public OptimisticLexicalContext(final boolean isEnabled) { super(); this.isEnabled = isEnabled; } /** * Are optimistic types enabled * @return true if optimistic types */ public boolean isEnabled() { return isEnabled; } /** * Log an optimistic assumption during codegen * TODO : different parameters and more info about the assumption for future profiling * needs * @param symbol symbol * @param type type */ public void logOptimisticAssumption(final Symbol symbol, final Type type) { if (isEnabled) { final List<Assumption> peek = optimisticAssumptions.peek(); peek.add(new Assumption(symbol, type)); } } /** * Get the list of optimistic assumptions made * @return optimistic assumptions */ public List<Assumption> getOptimisticAssumptions() { return Collections.unmodifiableList(optimisticAssumptions.peek()); } /** * Does this method have optimistic assumptions made during codegen? * @return true if optimistic assumptions were made */ public boolean hasOptimisticAssumptions() { return !optimisticAssumptions.isEmpty() && !getOptimisticAssumptions().isEmpty(); } @Override public <T extends LexicalContextNode> T push(final T node) { if (isEnabled) { if(node instanceof FunctionNode) { optimisticAssumptions.push(new ArrayList<Assumption>()); } } return super.push(node); } @Override public <T extends Node> T pop(final T node) { final T popped = super.pop(node); if (isEnabled) { if(node instanceof FunctionNode) { optimisticAssumptions.pop(); } } return popped; } }
⏎ jdk/nashorn/internal/ir/OptimisticLexicalContext.java
Or download all of them as a single archive file:
File name: jdk.scripting.nashorn-11.0.1-src.zip File size: 1390965 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.scripting.nashorn.shell.jmod - Scripting Nashorn Shell Module
2020-04-25, 108243👍, 0💬
Popular Posts:
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
Apache Log4j SLF4J Binding allows applications coded to the SLF4J API to use Log4j 2 as the implemen...
What Is commons-net-ftp-2.0.jar? commons-net-ftp-2.0.jar is the JAR file for Apache Commons Net FTP ...
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...