summaryrefslogtreecommitdiffstats
path: root/V8Binding
Commit message (Collapse)AuthorAgeFilesLines
* V8 can now use WebCore/bridge/jni/JNIBridge.cppSteve Block2010-01-271-153/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | JNIBridge.cpp is now used by both JSC and V8 This removes the last file from V8Bindings $ diff WebCore/bridge/jni/JNIBridge.cpp V8Binding/jni/jni_runtime.cpp 2d1 < * Copyright (C) 2003, 2004, 2005, 2007, 2009 Apple Inc. All rights reserved. 28c27 < #include "JNIBridge.h" --- > #include "jni_runtime.h" 30,32c29 < #if ENABLE(MAC_JAVA_BRIDGE) < < #include "CString.h" --- > #include "JNIUtility.h" 35,45d31 < < #ifdef NDEBUG < #define JS_LOG(formatAndArgs...) ((void)0) < #else < #define JS_LOG(formatAndArgs...) { \ < fprintf(stderr, "%s:%d -- %s: ", __FILE__, __LINE__, __FUNCTION__); \ < fprintf(stderr, formatAndArgs); \ < } < #endif < < using namespace JSC; 49d34 < 106,109d90 < #if USE(JSC) < ASSERT(JSLock::lockCount() > 0); < #endif < 127,130d107 < #if USE(JSC) < JSLock lock(SilenceAssertionsOnly); < #endif < 177,178d153 < < #endif // ENABLE(MAC_JAVA_BRIDGE) Change-Id: I3f0aabc5af56083aa950eca1609b2fe9b46726c9
* V8 can now use WebCore/bridge/jni/JNIBridge.hSteve Block2010-01-272-114/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | JNIBridge.h is now used by both JSC and V8 $ diff WebCore/bridge/jni/JNIBridge.h V8Binding/jni/jni_runtime.h 2d1 < * Copyright (C) 2003, 2004, 2005, 2007, 2009, 2010 Apple Inc. All rights reserved. 27,30c26,27 < #ifndef JNIBridge_h < #define JNIBridge_h < < #if ENABLE(MAC_JAVA_BRIDGE) --- > #ifndef jni_runtime_h > #define jni_runtime_h 31a29 > #include "Bridge.h" 34,35c32,33 < #if USE(JSC) < #include "JavaStringJSC.h" --- > #if USE(V8) > #include "JavaStringV8.h" 64,66d61 < #if USE(JSC) < operator UString() const { return m_impl.uString(); } < #endif 118,120c113 < #endif // ENABLE(MAC_JAVA_BRIDGE) < < #endif // JNIBridge_h --- > #endif // jni_runtime_h Change-Id: I59c7dafb295aa7c81e79283333266c3f9f5a9a52
* Updates V8 versions of JavaMethod and JavaParameter to match JSC versionsSteve Block2010-01-261-4/+6
| | | | | | | | | V8 versions of JavaMethod and JavaParameter are provided by jni_runtime. This change updates those classes to match the JSC versions in JNIBridge. The changes are syntactic only and do not affect behavior. This will allow jni_runtime to be merged with JNIBridge. Change-Id: I2fceed94e1b57d133a068f51a2a40797447b7b58
* Moves V8's JavaField from V8's jni_runtime to JavaClassV8 and fixes styleSteve Block2010-01-262-33/+0
| | | | | | | | | | | | | | | | JavaField is script-engine specific. The JSC version of JavaField was moved out of the script-independent file JNIBridge (previosuly named jni_runtime) in http://trac.webkit.org/changeset/53849 This change makes the equivalent move for V8. This will make V8's version of jni_runtime script-independent, allowing it to be merged with JNIBridge in WebCore in the future. This change is being upstreamed to webkit.org in https://bugs.webkit.org/show_bug.cgi?id=34166 Change-Id: I7b35bfe4e8e7820623a824028eb64d06421bdb6b
* Update V8 JavaMethod::signature to use appendClassName() to match JSC versionSteve Block2010-01-261-74/+22
| | | | | | The JSC version was made script-engine-independent in http://trac.webkit.org/changeset/53193 Change-Id: Ie4d3a6afc146cc18a3b6a65eed16ff7bcdb8d447
* Fixes style in V8 jni_runtime.[cpp|h]Steve Block2010-01-212-142/+130
| | | | | | | This change makes it far easier to compare these files with WebCore/bridge/jni/Bridge.[cpp|h], with which these files will eventually be merged. Change-Id: I1b4ba9843f61c909568f85c65a0872a36d727fb3
* Updates V8 version of JavaString to use a private implementation class.Steve Block2010-01-211-28/+20
| | | | | | | | | WebKit change http://trac.webkit.org/changeset/53449 moved the JSC-specific implementation of JavaString to JavaStringJSC.h. This is the V8 equivalent of that change. This is being upstreamed to webkit.org in https://bugs.webkit.org/show_bug.cgi?id=33953 Change-Id: I6cadc4f4f941aab900aeaf3251a5cad77d050b9b
* Move V8 jni_npobject to bridge/jni/v8/JavaNPObjectV8 and fix styleSteve Block2010-01-212-219/+0
| | | | Change-Id: Icf99c709929ef14551de61e55780b97767575f01
* Move V8 jni_instance to bridge/jni/v8/JavaInstanceV8 and fix styleSteve Block2010-01-214-279/+2
| | | | | | | This is the V8 equivalent of http://trac.webkit.org/changeset/53412 It is being upstreamed to webkit.org in https://bugs.webkit.org/show_bug.cgi?id=33951 Change-Id: Id22d59b7a5e0be72d594d454bb41c58760d824ff
* Rename V8 jni_utility_private to JNIUtilityPrivate and fixes styleSteve Block2010-01-201-1/+1
| | | | | | | This is the V8 equivalent of http://trac.webkit.org/changeset/51756 It is being upstreamed to webkit.org in https://bugs.webkit.org/show_bug.cgi?id=33901 Change-Id: I336687e546748a7823f5e2d18f1ac1112a30a60c
* Move V8 jni_class to bridge/jni/v8/JavaClassV8 and fix styleSteve Block2010-01-204-177/+2
| | | | | | | This is the V8 equivalent of http://trac.webkit.org/changeset/53443 It is being upstreamed to webkit.org in https://bugs.webkit.org/show_bug.cgi?id=33898 Change-Id: I27dcf73cc7d8c0303243ea632361f2210819cbc4
* Cherry-pick WebKit change 53497 to rename jni_utility and ↵Steve Block2010-01-205-11/+9
| | | | | | | | | | | jni_utility_private to JNIUtility and JNIUtilityPrivate See http://trac.webkit.org/changeset/53497 This is required to sync the Android tree with webkit.org to allow unforking in WebCore/bridge. This change required updating headers in Android-specific files in WebCore and WebKit. Change-Id: I4b80eb3eadcff66cbd261aa6ccef0f37927250b1
* Cherry-pick WebKit change 53436 to fix style in JavaInstanceJSCSteve Block2010-01-192-4/+4
| | | | | | | | | | | | See http://trac.webkit.org/changeset/53436 This is required to sync the Android tree with webkit.org to allow unforking in WebCore/bridge. Note that changes to the following were required as a result of this cherry-pick. - WebCoreFrameBridge.cpp - updated to use JavaInstance::m_instance - V8Binding/jni/jni_instance - Updated to rename the V8 version of JavaInstance::_instance to JavaInstance::m_instance to allow the same code path to be used in WebCoreFrameBridge. Change-Id: I6884f7424c8a0917095f828bda4ca62452e527b5
* Updates the use of weak references in the script-to-Java bridge for V8.Steve Block2010-01-083-44/+35
| | | | | | | | | | | | | | | | | Currently, V8 uses weak references to the Java object owned by JObjectWrapper. This is in contrast to JSC, which uses strong references in JObjectWrapper. However, for the special-case where JObjectWrapper is used in JavaInstance in WebCoreFrameBridge, JSC uses WeakJavaInstance to swap the strong references for weak references. This change updates the V8 version of JObjectWrapper to use strong references to match the JSC version. To maintain the weak reference behavior where JObjectWrapper is used in JavaInstance in WebCoreFrameBridge, V8 now make use of WeakJavaInstance too. This requires changes to jni_npobject to call the necessary methods on JavaInstance to swap the references when the object is accessed. Change-Id: I3724d7e6437588feb0268a2670b02a93b52e54f0
* Updates V8 version of JavaInstance to use RefCounted, rather than ↵Steve Block2009-12-302-10/+2
| | | | | | implementing custom ref and deref methods. Change-Id: I9cc775224edcda65884461eaf0f4ff7efb5922be
* Merges V8 version of jni_utility with JSC version at WebCore/bridge/jni.Steve Block2009-12-073-829/+2
| | | | Change-Id: I640d5ca9e38d78fd662550fa389cf8b463dc78b6
* Move V8 Makefiles to from V8Binding directory to WebCore directory, to match ↵Steve Block2009-11-171-729/+0
| | | | | | | | JSC Makefiles. Also move binding include paths to Android.*bindings.mk and clean up some comments. Change-Id: I6d1475cdfcc330ec3e271cab1c3aa25a414f0448
* Removes some more superfluous code from the Makefiles.Steve Block2009-11-171-6/+0
| | | | Change-Id: I9326a117296554c12ff43be0fff90b987a29561e
* Remove DerivedSources.make.Steve Block2009-11-101-1185/+0
| | | | | | | | This is not used by Android. It has been here since the initial import from Chromium. See https://android-git.corp.google.com/w/?p=platform/external/webkit.git;a=history;f=V8Binding/DerivedSources.make;h=227aa5ec8907cb1657c495771821ce2edc05f0d4;hb=eclair-mr2. Change-Id: I1e5d38682e519045fe67bb7b78fe13cc3c709a9a
* Merge webkit.org at r50258 : Fix Makefiles.Steve Block2009-11-101-1/+7
| | | | Change-Id: I5b458ac956718d2dd25d4faff503b376cd9e3214
* Move V8 to external/v8Steve Block2009-10-30874-323341/+0
| | | | Change-Id: I9ef85bb1a4fd0e808ca37ac532803542b6dfb04d
* Use NPAPI headers from WebCore/bridge/ rather than those from V8Bindings/npapi/.Steve Block2009-10-285-1235/+5
| | | | | | | | The files in question are npapi.h and npruntime.h. The Android versions at V8Bindings/npapi/ are identical to the WebKit versions, other than a couple of trivial changes, which are accounted for in this patch. Change-Id: I998a5863181283aa6153c84a745b1923d9b5721b
* Adds ScriptController::initializeThreading(), to allow initializeThreading() ↵Steve Block2009-10-273-86/+0
| | | | | | | | | | to be used with both JSC and V8 without the use of ifdefs. See https://bugs.webkit.org/show_bug.cgi?id=30678 This has now been upstreamed to webkit.org, so submitting to Android to avoid future merge conflicts. Change-Id: Ia17a9f02060f04b11a8bffa367164162775516ba
* Remove XPathNSResolver from the Android build.Steve Block2009-10-263-124/+0
| | | | | | Also remove a few other unnnecessary files from the JSC Makefile. Change-Id: I3788a1e3f60941e9712b4c4345ba09fa0a5ad390
* Merge webkit.org at R49305 : Add Android makefiles and set ENABLE flags.Steve Block2009-10-201-5/+39
| | | | | | | We disable INSPECTOR - See http://trac.webkit.org/changeset/48430 We disable EVENT_SOURCE - see http://trac.webkit.org/changeset/47323 Change-Id: Iab25b3bb56582d9df1e693ed7158338e953677b7
* Removes some commented out files from the V8 derived Makefile.Steve Block2009-10-191-8/+0
| | | | Change-Id: I27567e104f8953b6858597a7f7a5f522b6203ac8
* Update V8 to revision 3018.Steve Block2009-10-14184-6026/+8576
| | | | Note that the latest version of WebKit requires V8 change http://code.google.com/p/v8/source/detail?r=2969 See http://trac.webkit.org/changeset/49248
* Remove more superfluous WebKit files from build.Steve Block2009-10-141-1/+0
|
* Update V8 to bleeding_edge r2842.Ben Murdoch2009-09-08114-866/+4917
|
* Adds V8 bindings for optional properties of Geolocation Coordinates object.Steve Block2009-09-041-0/+1
| | | | This fixes http://b/issue?id=2049677.
* Merge change 23614 into eclairAndroid (Google) Code Review2009-09-021-1/+1
|\ | | | | | | | | * changes: Enables Geolocation for V8.
| * Enables Geolocation for V8.Steve Block2009-09-011-1/+1
| |
* | Merge change 22913 into eclairAndroid (Google) Code Review2009-09-011-0/+3
|\ \ | |/ | | | | | | * changes: Adds V8 bindings for Geolocation.
| * Adds V8 bindings for Geolocation.Steve Block2009-09-011-0/+3
| |
* | Update V8 to 2780 to fix a crash and pick up some ARM optimizationsAndrei Popescu2009-08-2886-706/+2341
| |
* | Update V8 to 2725 to pick up Thread Termination and Low Memory Notification APIsAndrei Popescu2009-08-2784-426/+3931
|/
* Merge commit 'goog/master' into mergeAndrei Popescu2009-08-192-0/+13
|\
| * Fix the sim-eng build.Feng Qian2009-08-182-0/+13
| | | | | | | | The same change is been upstreaming to V8.
* | Merge commit 'goog/master' into mergeBen Murdoch2009-08-1883-1750/+7872
|\ \ | |/ | | | | | | Conflicts: WEBKIT_MERGE_REVISION
| * Update V8 to r2703.Feng Qian2009-08-1883-1750/+7872
| | | | | | | | New revision has improvement of scanner.
* | Merge commit 'goog/master' into mergeBen Murdoch2009-08-183-1/+18
|\ \ | |/ | | | | | | | | | | Conflicts: WebCore/bindings/v8/ScriptController.cpp WebCore/page/Geolocation.cpp WebCore/platform/android/GeolocationServiceAndroid.cpp
| * Add GC support in V8 and calling GC in WebCoreFrameBridge::clearCache.Feng Qian2009-08-132-0/+14
| | | | | | | | This is experimental, we'd like to see the impact on page cycler intl1 and intl2.
| * Avoid calling GC in Context::NewFeng Qian2009-08-131-0/+5
| | | | | | | | TestShellActivity now sets V8 flag --expose_gc, and it should have the same effect to page cycler performance.
| * Remove experimental nolazy flag.Feng Qian2009-08-131-5/+0
| | | | | | | | I didn't see performance changes.
| * EXPERIMENTAL: turn off lazy compilation to see the impact on page cycler.Feng Qian2009-08-121-0/+5
| | | | | | | | Will turn it back after getting data from page cycler. (ETA 1 day)
| * Merge change 20814Android (Google) Code Review2009-08-111-4/+0
| |\ | | | | | | | | | | | | * changes: Enable GC call before creating a new context.
| | * Enable GC call before creating a new context.Feng Qian2009-08-111-4/+0
| | | | | | | | | | | | I think this is very likely the cause of big memory jump and slowdown of page cycler.
| * | Don't install v8shell by default in kila-testsSriram Raman2009-08-101-0/+2
| |/
* | sort out inspector linking errorsAndrei Popescu2009-08-171-10/+0
| |
* | Continue with linker error fixes.Ben Murdoch2009-08-175-3/+90
| |