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/codegen/types/BytecodeOps.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.codegen.types; import jdk.internal.org.objectweb.asm.MethodVisitor; /** * Interface for byte code generation for all runtime types. Each * type implements this interface and provides the type specific * operations to do the generic things described herein. * * The bytecode ops are coupled to a MethodVisitor from ASM for * byte code generation. They know nothing about our MethodGenerator, * which is the abstraction for working with Nashorn JS types * For example, anything like "two or one slots" for a type, which * is represented in bytecode and ASM, is abstracted away in the * MethodGenerator. There you just say "dup" or "store". * * @see Type * @see MethodVisitor */ interface BytecodeOps { /** * Duplicate top entry of stack. If a too large depth is * given, so that there are no possible bytecode instructions * available to generate the dup sequence, null is returned. * * @param method method visitor * @param depth how far should the copy be pushed down * * @return the type at the top of the stack or null */ Type dup(MethodVisitor method, int depth); /** * Pop an entry of this type from the top of the bytecode * stack. This works regardless of what category this type * is * * @param method method visitor * * @return the popped type */ Type pop(MethodVisitor method); /** * Swap this type with the bytecode stack with the one below * Generate appropriate code no matter the categories of the * two types * * @param method method visitor * @param other the type below this one on the stack * * @return the other type */ Type swap(MethodVisitor method, Type other); /** * Pop two values on top of the stack and add the * first to the second, pushing the result on the stack * * @param method method visitor * @param programPoint program point id * @return result type */ Type add(MethodVisitor method, int programPoint); /** * Load a variable from a local slot to the stack * * @param method method visitor * @param slot the slot to load * * @return the type that was loaded */ Type load(MethodVisitor method, int slot); /** * Store a variable from the stack to a local slot * * @param method method visitor * @param slot the slot to store to */ void store(MethodVisitor method, int slot); /** * Load a constant to the stack. * * @param method method visitor * @param c the value of the constant * * @return the type at the top of the stack after load */ Type ldc(MethodVisitor method, Object c); /** * Load the "undefined" value to the stack. Note that * there may be different representations of this for * e.g. doubles and objects. Abstraction removes this * * @param method method visitor. * * @return the undefined type at the top of the stack */ Type loadUndefined(MethodVisitor method); /** * Load the "forced initializer" value to the stack, used to ensure that a local variable has a value when it is * read by the unwarranted optimism catch block. * * @param method method visitor. * * @return the forced initialization type at the top of the stack */ Type loadForcedInitializer(MethodVisitor method); /** * Load the "empty" value to the stack. * * @param method method visitor. * @return the undefined type at the top of the stack */ Type loadEmpty(MethodVisitor method); /** * Generate code that pops and casts the element on top of the * stack to another type, given as parameter * * @param method method visitor * @param to the type to cast to * * @return the to type */ Type convert(MethodVisitor method, Type to); /** * Return the parameter on top of the stack * from a method * * @param method the method visitor */ void _return(MethodVisitor method); }
⏎ jdk/nashorn/internal/codegen/types/BytecodeOps.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, 107852👍, 0💬
Popular Posts:
Apache Log4j IOStreams is a Log4j API extension that provides numerous classes from java.io that can...
What JAR files are required to run dom\Counter.java provided in the Apache Xerces package? You can f...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
Apache Log4j provides the interface that applications should code to and provides the adapter compon...
JasperReports, the world's most popular open source business intelligence and reporting engine and J...