Skip to content

Commit

Permalink
Sulong: Remove truffle_load_library intrinsic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Palez committed Sep 15, 2020
1 parent 14b7cce commit 8c05e7c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 65 deletions.
2 changes: 0 additions & 2 deletions sulong/include/truffle.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ extern "C" {
#include <stdbool.h>
#include <stdlib.h>

void truffle_load_library(const char *string);

// Managed operations
void *truffle_virtual_malloc(size_t size);
void *truffle_managed_malloc(long size);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@
import com.oracle.truffle.llvm.runtime.nodes.intrinsics.c.LLVMMemIntrinsicFactory.LLVMLibcMemsetNodeGen;
import com.oracle.truffle.llvm.runtime.nodes.intrinsics.c.LLVMSignalNodeGen;
import com.oracle.truffle.llvm.runtime.nodes.intrinsics.c.LLVMSyscall;
import com.oracle.truffle.llvm.runtime.nodes.intrinsics.interop.LLVMLoadLibraryNodeGen;
import com.oracle.truffle.llvm.runtime.nodes.intrinsics.interop.LLVMPolyglotAsPrimitive;
import com.oracle.truffle.llvm.runtime.nodes.intrinsics.interop.LLVMPolyglotAsString;
import com.oracle.truffle.llvm.runtime.nodes.intrinsics.interop.LLVMPolyglotBoxedPredicateNodeGen;
Expand Down Expand Up @@ -449,8 +448,6 @@ private static void registerTruffleIntrinsics() {
add("polyglot_from_string", (args, nodeFactory) -> LLVMPolyglotFromString.create(args.get(1), args.get(2)));
add("polyglot_from_string_n", (args, nodeFactory) -> LLVMPolyglotFromString.createN(args.get(1), args.get(2), args.get(3)));

add("truffle_load_library", (args, nodeFactory) -> LLVMLoadLibraryNodeGen.create(args.get(1)));

add("__polyglot_as_typeid", (args, nodeFactory) -> LLVMTypeIDNode.create(args.get(1)));
add("polyglot_as_typed", (args, nodeFactory) -> LLVMPolyglotAsTyped.create(args.get(1), args.get(2)));
add("polyglot_from_typed", (args, nodeFactory) -> LLVMPolyglotFromTyped.create(args.get(1), args.get(2)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ abstract static class ManagedAccessNode extends LLVMNode {

/**
* Annotation helper for guards to check whether {@code obj} is an auto-deref handle (e.g. a
* wrapped pointer). This helper assumes that an isPointer call returns true for
* {@code obj}.
* wrapped pointer). This helper assumes that an isPointer call returns true for {@code obj}
* .
*/
static boolean isWrappedAutoDerefHandle(LLVMLanguage language, LLVMNativeLibrary nativeLibrary, Object obj) {
try {
Expand Down

This file was deleted.

0 comments on commit 8c05e7c

Please sign in to comment.