Class GlobalScopeLookupNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.js.nodes.JavaScriptBaseNode
com.oracle.truffle.js.nodes.access.GlobalScopeLookupNode
All Implemented Interfaces:
com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public abstract class GlobalScopeLookupNode extends JavaScriptBaseNode
Checks if a scope binding is present and guards against TDZ and const assignment.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node

    com.oracle.truffle.api.nodes.Node.Child, com.oracle.truffle.api.nodes.Node.Children
  • Method Summary

    Modifier and Type
    Method
    Description
    create(com.oracle.truffle.api.strings.TruffleString varName, boolean write)
     
    abstract boolean
    execute(Object scope)
     
    protected int
     

    Methods inherited from class com.oracle.truffle.js.nodes.JavaScriptBaseNode

    copy, getJSContext, getLanguage, getLanguageOptions, getRealm, hasOverloadedOperators, onReplace

    Methods inherited from class com.oracle.truffle.api.nodes.Node

    accept, adoptChildren, atomic, atomic, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, replace, replace, reportPolymorphicSpecialize, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • create

      public static GlobalScopeLookupNode create(com.oracle.truffle.api.strings.TruffleString varName, boolean write)
    • execute

      public abstract boolean execute(Object scope)
    • getPropertyCacheLimit

      protected int getPropertyCacheLimit()