summaryrefslogtreecommitdiffstats
path: root/WebCore/bridge/jni
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bridge/jni')
-rw-r--r--WebCore/bridge/jni/jsc/JNIUtilityPrivate.cpp13
-rw-r--r--WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp31
2 files changed, 3 insertions, 41 deletions
diff --git a/WebCore/bridge/jni/jsc/JNIUtilityPrivate.cpp b/WebCore/bridge/jni/jsc/JNIUtilityPrivate.cpp
index 69782f3..4702d12 100644
--- a/WebCore/bridge/jni/jsc/JNIUtilityPrivate.cpp
+++ b/WebCore/bridge/jni/jsc/JNIUtilityPrivate.cpp
@@ -250,13 +250,7 @@ jvalue convertValueToJValue(ExecState* exec, RootObject* rootObject, JSValue val
jobject javaString = env->functions->NewString(env, (const jchar*)stringValue.data(), stringValue.size());
result.l = javaString;
}
-<<<<<<< HEAD
- } else if (!result.l)
- // ANDROID
- memset(&result, 0, sizeof(jvalue)); // Handle it the same as a void case
-=======
}
->>>>>>> webkit.org at r58033
}
break;
@@ -310,13 +304,6 @@ jvalue convertValueToJValue(ExecState* exec, RootObject* rootObject, JSValue val
case invalid_type:
case void_type:
-<<<<<<< HEAD
- {
- // ANDROID
- memset(&result, 0, sizeof(jvalue));
- }
-=======
->>>>>>> webkit.org at r58033
break;
}
return result;
diff --git a/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp b/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
index 666df54..039626f 100644
--- a/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
+++ b/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
@@ -41,27 +41,11 @@
#include <runtime/Error.h>
#include <runtime/JSLock.h>
-<<<<<<< HEAD
-#if PLATFORM(ANDROID)
-#include <assert.h>
-#endif
-
-#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
-
#if PLATFORM(ANDROID)
#include <cutils/log.h>
#define LOG_TAG JavaInstanceJSC.cpp
#endif
-=======
->>>>>>> webkit.org at r58033
using namespace JSC::Bindings;
using namespace JSC;
using namespace WebCore;
@@ -379,15 +363,11 @@ JSValue JavaInstance::valueOf(ExecState* exec) const
JObjectWrapper::JObjectWrapper(jobject instance)
: m_refCount(0)
{
-<<<<<<< HEAD
- assert(instance);
+ ASSERT(instance);
#if PLATFORM(ANDROID)
if (!instance)
LOGE("Attempted to create JObjectWrapper for null object");
#endif
-=======
- ASSERT(instance);
->>>>>>> webkit.org at r58033
// Cache the JNIEnv used to get the global ref for this java instance.
// It'll be used to delete the reference.
@@ -397,17 +377,12 @@ JObjectWrapper::JObjectWrapper(jobject instance)
LOG(LiveConnect, "JObjectWrapper ctor new global ref %p for %p", m_instance, instance);
-<<<<<<< HEAD
- if (!m_instance)
+ if (!m_instance)
#if PLATFORM(ANDROID)
LOGE("%s: could not get GlobalRef for %p\n", __PRETTY_FUNCTION__, instance);
#else
- fprintf(stderr, "%s: could not get GlobalRef for %p\n", __PRETTY_FUNCTION__, instance);
-#endif
-=======
- if (!m_instance)
LOG_ERROR("Could not get GlobalRef for %p", instance);
->>>>>>> webkit.org at r58033
+#endif
}
JObjectWrapper::~JObjectWrapper()