OSDN Git Service

Try to fix JNI startup errors.
authorBen Murdoch <benm@google.com>
Tue, 18 Aug 2009 11:11:34 +0000 (12:11 +0100)
committerBen Murdoch <benm@google.com>
Tue, 18 Aug 2009 11:11:34 +0000 (12:11 +0100)
WebCore/bindings/v8/ScriptController.cpp
WebCore/bindings/v8/V8Index.cpp
WebCore/bindings/v8/V8Utilities.h

index 3c99c61..86533f4 100644 (file)
@@ -270,7 +270,7 @@ void ScriptController::collectGarbage()
     if (v8Context.IsEmpty())
         return;
 
-    v8::Context::Scope scope(context);
+    v8::Context::Scope scope(v8Context);
 #if PLATFORM(ANDROID)
     v8::V8::CollectAllGarbage();
 #else
index 8f32256..9efbc3d 100644 (file)
 #include "V8HTMLTitleElement.h"
 #include "V8HTMLUListElement.h"
 #include "V8ImageData.h"
-#include "V8InspectorBackend.h"
 #include "V8Media.h"
 #include "V8MediaList.h"
 #include "V8MessageChannel.h"
 #include "V8RGBColor.h"
 #include "V8VoidCallback.h"
 
+#if !PLATFORM(ANDROID)
+#include "V8InspectorBackend.h"
+#endif
+
 #if ENABLE(OFFLINE_WEB_APPLICATIONS)
 #include "V8DOMApplicationCache.h"
 #endif
index 8bd310b..3e59d34 100644 (file)
@@ -32,7 +32,8 @@
 #define V8Utilities_h
 
 #if ENABLE(V8_LOCKERS)
-#define LOCK_V8 v8::Locker lock
+// TODO(benm): Need to re-add in locking for V8. We lost some of the lock points during the merge. Define it to void here so we don't lock some of the time.
+#define LOCK_V8 ((void) 0)
 #else
 #define LOCK_V8 ((void) 0)
 #endif