Class BoundConstants


  • final class BoundConstants
    extends java.lang.Object
    • Field Detail

      • _values

        private final java.util.ArrayList<java.lang.Object> _values
        The list of constants in the order they appear in the constant array
      • _indexes

        private final java.util.IdentityHashMap<java.lang.Object,​MutableInteger> _indexes
        The index of each constant in the constant array
    • Constructor Detail

      • BoundConstants

        BoundConstants()
    • Method Detail

      • count

        int count()
      • toArray

        java.lang.Object[] toArray()
      • addReference

        void addReference​(java.lang.Object value,
                          Type<?> type)
      • emitConstant

        void emitConstant​(LambdaCompiler lc,
                          java.lang.Object value,
                          Type<?> type)
      • emitConstantsArray

        private static void emitConstantsArray​(LambdaCompiler lc)
      • emitConstantFromArray

        private void emitConstantFromArray​(LambdaCompiler lc,
                                           java.lang.Object value,
                                           Type type)
      • shouldCache

        private static boolean shouldCache​(int refCount)