Class GlobalEnvironment


public final class GlobalEnvironment extends DerivedEnvironment
  • Constructor Details

  • Method Details

    • findBlockFrameSlot

      public JSFrameSlot findBlockFrameSlot(Object name)
      Overrides:
      findBlockFrameSlot in class Environment
    • addLexicalDeclaration

      public void addLexicalDeclaration(com.oracle.truffle.api.strings.TruffleString name, boolean isConst)
    • hasLexicalDeclaration

      public boolean hasLexicalDeclaration(com.oracle.truffle.api.strings.TruffleString name)
    • hasConstDeclaration

      public boolean hasConstDeclaration(com.oracle.truffle.api.strings.TruffleString name)
    • addVarDeclaration

      public void addVarDeclaration(com.oracle.truffle.api.strings.TruffleString name)
    • hasVarDeclaration

      public boolean hasVarDeclaration(com.oracle.truffle.api.strings.TruffleString name)
    • isGlobalObjectConstant

      public static boolean isGlobalObjectConstant(com.oracle.truffle.api.strings.TruffleString name)
      Returns true for always-defined immutable value properties of the global object.
    • hasBeenDeclared

      public boolean hasBeenDeclared(com.oracle.truffle.api.strings.TruffleString name)
    • setHasBeenDeclared

      public void setHasBeenDeclared(com.oracle.truffle.api.strings.TruffleString name, boolean declared)
    • toStringImpl

      protected String toStringImpl(Map<String,Integer> state)
      Overrides:
      toStringImpl in class Environment