summaryrefslogtreecommitdiffstats
path: root/WebCore/bridge/jni/v8
Commit message (Collapse)AuthorAgeFilesLines
* Merge WebKit at r75315: Initial merge by git.Steve Block2011-05-1211-1359/+0
| | | | Change-Id: I570314b346ce101c935ed22a626b48c2af266b84
* Avoid Android modifications to JavaNPObjectV8.cpp/hSteve Block2011-03-022-6/+2
| | | | | | | | | | | | https://android-git.corp.google.com/g/40387 fixed a long-standing bug to avoid leaking references to injected Java objects. However, it did so by making changes to JavaNPObjectV8.cpp/h which were never upstreamed. This change avoids the need for these changes. This change also avoids the use of a local PassRefPtr, which was incorrectly introduced in https://android-git.corp.google.com/g/36204. Change-Id: I6b17e85f7991e5226e00e7b041c38e2ca3d0cf57
* Merge WebKit at r73109: Fix V8 JNI binding.Shimeng (Simon) Wang2010-12-221-10/+32
| | | | | | | | | cherry pick the change for webkit bug: https://bugs.webkit.org/show_bug.cgi?id=51156 And fix array bindings. Change-Id: I64b89fadd10ac87fa998a79b2af4aa9db07a8318
* Remove some temporary logging in the JNI bridgeSteve Block2010-12-031-12/+1
| | | | | | | | | This was added to try to track down a crashing bug but is no longer required. Bug: 2435360 Change-Id: I5e88a842e42cd89e96c7f2eea54e96a440f890ca
* Fix crash in JavaClassV8Ben Murdoch2010-11-242-9/+0
| | | | | | | | | | | | | It is possible that the m_name member of JavaClass is uninitialized as we possibly early out from the constructor if we could not load the Java class from the JVM. In this case when we call the dtor we try to free uninitialized memory and crash. m_name is not actually used anywhere so we just remove it. Will upstream to webkit. Bug: 3222518 Change-Id: I9354e9914157d2c4afd72dcce9122329c2486c89
* Merge WebKit at r65615 : UTF8String() becomes utf8().Iain Merrick2010-08-235-7/+7
| | | | | | | | | This was changed for JSC strings in http://trac.webkit.org/changeset/65305, but the V8 implementation was not updated. Fix upstream in WebKit -- see https://bugs.webkit.org/show_bug.cgi?id=44419 Change-Id: Icaf70d9f8a3120613ab3e80b69d4ce0c7af89d46
* Merge WebKit at r65615 : Initial merge by git.Iain Merrick2010-08-231-1/+1
| | | | Change-Id: Ifbf384f4531e3b58475a662e38195c2d9152ae79
* Merge WebKit at r65072 : Initial merge by git.Ben Murdoch2010-08-121-2/+2
| | | | Change-Id: Ibcf418498376b2660aacb7f8d46ea7085ef91585
* Merge Webkit at r63173 : Fix conflicts.Leon Clarke2010-07-201-3/+0
| | | | | | | | | | | | | | | | | | | | Android.v8bindings.mk: IDBBindingUtilities caused by http://trac.webkit.org/changeset/63064 CSSCompitedStyleDeclaration.cpp conflict caused by http://trac.webkit.org/changeset/63038 'Computed style is not implemented for padding-start, padding-end, margin-start, margin-end' HTMLDocumentParser.cpp conflict caused by http://trac.webkit.org/changeset/63165 'HTML5 Parser: document.write after onload blows away document' Navigator.h conflict caused by http://trac.webkit.org/changeset/62577 Page.cpp caused by http://trac.webkit.org/changeset/62502 ResourceHandleAndroid.cpp by http://trac.webkit.org/changeset/62736 HTMLLinkElement.* by the upstreaming of link prefetching at http://trac.webkit.org/changeset/63032 Change-Id: I5b9d3eef87cd525a9fc7d862676a41fc4122cba0
* Merge WebKit at r63173 : Initial merge by git.Leon Clarke2010-07-201-0/+3
| | | | Change-Id: Ife5af0c7c6261fbbc8ae6bc08c390efa9ef10b44
* Update JavaInstance to reflect final version upstreamed to WebKitSteve Block2010-07-071-8/+7
| | | | | | | See https://bugs.webkit.org/show_bug.cgi?id=41516 Bug: 2807132 Change-Id: I080978d1a6b90f2d8da1f62adbb62c60ef0034c9
* am 939d1819: am 9d4701f9: Push a local reference frame to avoid table overflow.Patrick Scott2010-07-012-8/+13
|\ | | | | | | | | | | | | Merge commit '939d1819c550af9e179aa2fa46668206333e1ebc' * commit '939d1819c550af9e179aa2fa46668206333e1ebc': Push a local reference frame to avoid table overflow.
| * Push a local reference frame to avoid table overflow.Patrick Scott2010-06-292-8/+13
| | | | | | | | | | | | | | | | | | Similar to jsc's implementation, this is needed to restrict the amount of local references in a given jni frame. Once the frame is popped from the stack, all local references are cleaned. Bug: 2807132 Change-Id: I5f4153509c513bec142472927a1787869a57f530
* | Merge webkit.org at r58033 : Initial merge by gitSteve Block2010-05-111-3/+3
|/ | | | Change-Id: If006c38561af287c50cd578d251629b51e4d8cd1
* Get the correct class name from the JVM when constructing arrays in the JNI ↵Ben Murdoch2010-04-011-10/+10
| | | | | | | | | | bindings. Also a change in packages/apps/Browser to update the unit tests for JNI bindings. Fix for b/2540502 Change-Id: Ia86a1ac672bd6653427ac0a969b4d40c86141415
* Implement the V8 JNI bindings more completely.Ben Murdoch2010-03-313-7/+225
| | | | Change-Id: I3b3d2bff84ee4a1039424cf1881e5d3d428127f9
* Cherry pick from master.Steve Block2010-03-292-11/+11
| | | | | | | | | | | | Cherry-picks WebKit change 56105 to eliminate use of bzero in WebKit common code Note that manual changes were required to JNIUtilityPrivate.cpp as this file has changed upstreamed, but the merge will be trivial. See http://trac.webkit.org/changeset/56105 Bug: 2535696 Change-Id: I464a4aa78b1625961724b6001caba1c315ed9f91
* Adds some logging to JObjectWrapperSteve Block2010-03-151-1/+12
| | | | | | | | This is an attempt to track down the cause of a crashing bug in the WebCore bridge, which is only occasionally triggered by the monkey. Bug: 2435360 Change-Id: I3171eb1978de285fcf258f908aa0a08d95b72968
* Don't leak global weak references when running layout testsLeon Clarke2010-03-042-2/+6
|
* Merge webkit.org at r54731 : Initial merge by gitSteve Block2010-02-161-4/+4
| | | | Change-Id: Ia79977b6cf3b0b00c06ef39419989b28e57e4f4a
* Merge webkit.org at r54340 : Fix merge conflictsSteve Block2010-02-151-12/+0
| | | | | | | | | | | | - Take both for Android makefiles, other than typo for JavaNPObjectV8 upstream - Take theirs for XCode project file and ChangeLog - Fix trivial header conflict in V8DocumentCustom - Keep ours for fix in JNIUtilityPrivate.cpp - Take theirs for V8DOMWrapper.cpp. Conflict is due to Android addition of TouchEvents, which conflicts with http://trac.webkit.org/changeset/54259 - Take both for Android addition of applicationInstalledCallback - Take both for Android JSC JIT changes in Platform.h Change-Id: Ib1a748f204a07a7e736feeee6a0f30f7453754a7
* Merge webkit.org at r54340 : Initial merge by gitSteve Block2010-02-151-0/+12
| | | | Change-Id: Ib489d2ff91186ea3652522e1d586e54416a2cf44
* Update fix in convertNPVariantToJValue to reflect final version submitted to ↵Steve Block2010-02-051-6/+0
| | | | | | webkit.org See http://trac.webkit.org/changeset/54366
* Fix a bug when converting double and float types from NP variants to JNI ↵Steve Block2010-02-041-4/+10
| | | | | | | | | types on V8 This bug has been present since the code was first added in V8Bindings/jni/jni_utility.cpp. https://android-git.corp.google.com/w/?p=platform/external/webkit.git;a=commitdiff;h=7fa30a60f66c19c8e6fb91ef799bca4d8d6f57f2 Change-Id: I4cc74369880d42e6610c2959f2d8bef2b7712927
* Update V8 JNI bridge code to match final version submitted to webkit.orgSteve Block2010-02-0210-78/+71
| | | | | | | | | | | | | | No functional changes, style changes only See the following WebKit changes ... JavaStringV8 : http://trac.webkit.org/changeset/54132 JavaInstanceV8 : http://trac.webkit.org/changeset/54165 JavaClassV8 : http://trac.webkit.org/changeset/54169 JNIUtilityPrivate : http://trac.webkit.org/changeset/54171 JNIBridgeV8 : http://trac.webkit.org/changeset/54175 JavaNPObjectV8 : http://trac.webkit.org/changeset/54237 Change-Id: I7cc9d19e74043d1bac1a576cdc97a780fe317b5d
* V8 can now use WebCore/bridge/jni/JNIBridge.hSteve Block2010-01-276-8/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0/+1
| | | | | | | | | 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-263-1/+105
| | | | | | | | | | | | | | | | 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
* Updates V8 version of JavaString to use a private implementation class.Steve Block2010-01-213-4/+67
| | | | | | | | | 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-213-1/+225
| | | | Change-Id: Icf99c709929ef14551de61e55780b97767575f01
* Move V8 jni_instance to bridge/jni/v8/JavaInstanceV8 and fix styleSteve Block2010-01-212-0/+267
| | | | | | | 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-202-31/+29
| | | | | | | 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
* Fixes a bug in V8 version of jni_utility_private.cppSteve Block2010-01-201-3/+3
| | | | | | | | | | When CONVERT_NULL_TO_EMPTY_STRING is defined, an 'else' is missing an opening brace. This causes compiler errors. This bug has been present since the code was first committed. See https://android-git.corp.google.com/w/?p=platform/external/webkit.git;a=commitdiff;h=7fa30a60f66c19c8e6fb91ef799bca4d8d6f57f2#patch9 Change-Id: I7e95217d166733e6cab1f2e74725e368df4c6f4b
* Move V8 jni_class to bridge/jni/v8/JavaClassV8 and fix styleSteve Block2010-01-202-0/+176
| | | | | | | 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-201-1/+1
| | | | | | | | | | | 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
* Updates the use of weak references in the script-to-Java bridge for V8.Steve Block2010-01-081-1/+1
| | | | | | | | | | | | | | | | | 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
* Merges V8 version of jni_utility with JSC version at WebCore/bridge/jni.Steve Block2009-12-072-0/+301
Change-Id: I640d5ca9e38d78fd662550fa389cf8b463dc78b6