4 ms·
I'm interested in the fact that the new Android browser runs the V8 JavaScript interpreter, which is a C++ program with an x86 JIT, so they must have ported or
by paulsmith 16y ago
I'm interested in the fact that the new Android browser runs the V8 JavaScript interpreter, which is a C++ program with an x86 JIT, so they must have ported or completely rewrote it from the ground-up for Java and the Dalvik VM.
- Tichy 16y agoThere is also a native interface for Android, maybe they were able to use that.
- mbrubeck 16y agoThe NDK is only needed for including native ARM code in Android packages (APK files). The Android kernel and system libraries have always been native code. This includes Dalvik itself, and WebKit and V8 (or JavaScriptCore), and many other libraries like SQLite, Speex, BlueZ, BSDiff, and zlib. They are installed directly on the system partition, not in APK files, and this has been true since before the NDK existed. The "Browser" app is an activity written in Java, but it uses the Android WebView API to embed WebKit, which is written in C++. The Java code handles the browser "chrome" - menus, toolbars, everything except the page content. (This is similar to Firefox which uses the C++ Gecko engine with JavaScript/XUL chrome.)
- wmf 16y agoThe Android browser (WebKit) has always been written in C++.