Package org.jruby.truffle.runtime.core

Examples of org.jruby.truffle.runtime.core.RubyBasicObject


        }
    }

    @Override
    public Object execute(VirtualFrame frame) {
        final RubyBasicObject object = receiver.executeRubyBasicObject(frame);
        final Object value = rhs.execute(frame);
        writeNode.execute(object, value);
        return value;
    }
View Full Code Here


        final RubyContext context = getContext();

        try {
            final Object receiverObject = receiver.execute(frame);
            final RubyBasicObject receiverRubyObject = context.getCoreLibrary().box(receiverObject);

            final ObjectLayout layout = receiverRubyObject.getObjectLayout();
            final StorageLocation storageLocation = layout.findStorageLocation(readNode.getName());

            if (storageLocation.isSet(receiverRubyObject)) {
                return context.makeString("instance-variable");
            } else {
View Full Code Here

    }

    public static Object send(RubyContext context, Object object, String methodName, RubyProc block, Object... arguments) {
        CompilerAsserts.neverPartOfCompilation();

        final RubyBasicObject rubyObject = context.getCoreLibrary().box(object);

        final RubyMethod method = ModuleOperations.lookupMethod(rubyObject.getMetaClass(), methodName);

        if (method == null) {
            return null;
        }
View Full Code Here

TOP

Related Classes of org.jruby.truffle.runtime.core.RubyBasicObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.