Skip to content
Permalink
Browse files
Remove last occurrences of PLATFORM(ANDROID)
https://bugs.webkit.org/show_bug.cgi?id=66763

Reviewed by Tony Gentilcore.

Source/JavaScriptCore:

* wtf/Platform.h:

Source/WebCore:

No new tests, removing dead code only.

* bindings/v8/V8GCController.cpp:
(WebCore::V8GCController::checkMemoryUsage):

Canonical link: https://commits.webkit.org/82574@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@93597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Steve Block committed Aug 23, 2011
1 parent 7b83213 commit b15d166e0db87314751e133bcdd660ec4edab35d
Showing 4 changed files with 21 additions and 20 deletions.
@@ -1,3 +1,12 @@
2011-08-23 Steve Block <steveblock@google.com>

Remove last occurrences of PLATFORM(ANDROID)
https://bugs.webkit.org/show_bug.cgi?id=66763

Reviewed by Tony Gentilcore.

* wtf/Platform.h:

2011-08-23 Steve Block <steveblock@google.com>

Remove all mention of removed Android files from build scripts
@@ -612,20 +612,6 @@
#define ENABLE_WEB_ARCHIVE 1
#endif

#if PLATFORM(ANDROID)
#define WTF_USE_PTHREADS 1
#define USE_SYSTEM_MALLOC 1
#define ENABLE_JAVA_BRIDGE 1
#define LOG_DISABLED 1
/* Prevents Webkit from drawing the caret in textfields and textareas
This prevents unnecessary invals. */
#define ENABLE_TEXT_CARET 1
#define ENABLE_JAVASCRIPT_DEBUGGER 0
#if !defined(ENABLE_JIT) && !ENABLE(ANDROID_JSC_JIT)
#define ENABLE_JIT 0
#endif
#endif

#if PLATFORM(WIN) && !OS(WINCE)
#define WTF_USE_CF 1
#define WTF_USE_PTHREADS 0
@@ -1,3 +1,15 @@
2011-08-23 Steve Block <steveblock@google.com>

Remove last occurrences of PLATFORM(ANDROID)
https://bugs.webkit.org/show_bug.cgi?id=66763

Reviewed by Tony Gentilcore.

No new tests, removing dead code only.

* bindings/v8/V8GCController.cpp:
(WebCore::V8GCController::checkMemoryUsage):

2011-08-23 Steve Block <steveblock@google.com>

Remove Android-specific modifications to non-client-based Geolocation
@@ -468,12 +468,6 @@ void V8GCController::checkMemoryUsage()
const int lowUsageMB = 256; // If memory usage is below this threshold, do not bother forcing GC.
const int highUsageMB = 1024; // If memory usage is above this threshold, force GC more aggresively.
const int highUsageDeltaMB = 128; // Delta of memory usage growth (vs. last workingSetEstimateMB) to force GC when memory usage is high.
#elif PLATFORM(ANDROID)
// Query the PlatformBridge for memory thresholds as these vary device to device.
static const int lowUsageMB = PlatformBridge::lowMemoryUsageMB();
static const int highUsageMB = PlatformBridge::highMemoryUsageMB();
// We use a delta of -1 to ensure that when we are in a low memory situation we always trigger a GC.
static const int highUsageDeltaMB = -1;
#else
return;
#endif

0 comments on commit b15d166

Please sign in to comment.