When embedding v8, one of the pain points is how to call Java/Kotlin code from Javascript. It is not just a matter of setting a FunctionCallbackInfo<Value>, but also of dealing with JNI. While there are really impressive exercises for automating JNI code calls, these are only valid suitable when you know your JNI needs upfront,Continue reading “Generic Javascript to Java bridge”
Author Archives: ibon
Native threads and JNI
How a native (non Java) thread can call into Java code through JNI.
Enable JavascriptCore debugging
Enable JavascriptCore remote debugging on Safari devtools.
Javascript native wrappers in V8 — Part I
Full tutorial on how to define native/javascript wrappers in v8.
V8 wrapped objects lifecycle
Basic v8 native wrapper lifecycle management. GC hooks.
V8 inspector from an embedder standpoint
Debug v8 in dev tools. Architecture and how to.
Android v8 embedding guide
How to embed V8 in Android. Project setup.
Squeezing v8 startup time 2
Faster v8 startup times. Extracting and storing Bytecode cache.
Compiled v8
several arm and arm64 pre-compiled and ready to use v8 versions.
Compile v8 arm, arm64, ia32
Working script to compile v8 for different architectures.