/** * Executes {@link Message#createNode() foreign node}. * * @deprecated replaced by specialized methods for sending individual messages (e.g. * {@link #sendRead(Node, VirtualFrame, TruffleObject, Object)}). For sending any * message use the rare {@link #send(Node, VirtualFrame, TruffleObject, Object...)} * method. * * @param foreignNode the createNode created by {@link Message#createNode()} * @param frame the call frame * @param receiver foreign object to receive the message passed to {@link Message#createNode()} * method * @param arguments parameters for the receiver * @return return value, if any * @throws ClassCastException if the createNode has not been created by * {@link Message#createNode()} method. * @throws IllegalStateException if any error occurred while accessing the <code>receiver</code> * object * @since 0.8 or earlier */ @SuppressWarnings("deprecation") @Deprecated public static Object execute(Node foreignNode, VirtualFrame frame, TruffleObject receiver, Object... arguments) { return ((InteropAccessNode) foreignNode).executeOld(receiver, arguments); }
/** * Executes {@link Message#createNode() foreign node}. * * @deprecated replaced by specialized methods for sending individual messages (e.g. * {@link #sendRead(Node, VirtualFrame, TruffleObject, Object)}). For sending any * message use the rare {@link #send(Node, VirtualFrame, TruffleObject, Object...)} * method. * * @param foreignNode the createNode created by {@link Message#createNode()} * @param frame the call frame * @param receiver foreign object to receive the message passed to {@link Message#createNode()} * method * @param arguments parameters for the receiver * @return return value, if any * @throws ClassCastException if the createNode has not been created by * {@link Message#createNode()} method. * @throws IllegalStateException if any error occurred while accessing the <code>receiver</code> * object * @since 0.8 or earlier */ @SuppressWarnings("deprecation") @Deprecated public static Object execute(Node foreignNode, VirtualFrame frame, TruffleObject receiver, Object... arguments) { return ((InteropAccessNode) foreignNode).executeOld(receiver, arguments); }