public class Environment.GlobalLexVarRef extends Environment.VarRef
name
Constructor and Description |
---|
GlobalLexVarRef(String name,
boolean isConst) |
Modifier and Type | Method and Description |
---|---|
JavaScriptNode |
createDeleteNode() |
JavaScriptNode |
createReadNode() |
JavaScriptNode |
createWriteNode(JavaScriptNode rhs) |
com.oracle.truffle.api.frame.FrameSlot |
getFrameSlot() |
boolean |
isConst() |
boolean |
isFunctionLocal() |
boolean |
isGlobal() |
Environment.VarRef |
withRequired(boolean required) |
Environment.VarRef |
withTDZCheck() |
createCompoundAssignNode, getName, isFrameVar
public GlobalLexVarRef(String name, boolean isConst)
public JavaScriptNode createReadNode()
createReadNode
in class Environment.VarRef
public JavaScriptNode createWriteNode(JavaScriptNode rhs)
createWriteNode
in class Environment.VarRef
public boolean isFunctionLocal()
isFunctionLocal
in class Environment.VarRef
public com.oracle.truffle.api.frame.FrameSlot getFrameSlot()
getFrameSlot
in class Environment.VarRef
public boolean isGlobal()
isGlobal
in class Environment.VarRef
public boolean isConst()
isConst
in class Environment.VarRef
public JavaScriptNode createDeleteNode()
createDeleteNode
in class Environment.VarRef
public Environment.VarRef withRequired(boolean required)
withRequired
in class Environment.VarRef
public Environment.VarRef withTDZCheck()
withTDZCheck
in class Environment.VarRef