Merge V8 at r10110: Roll to 3.2.10.40

Bug: 5654713
Change-Id: I94eb0ed43c585bb042456cb60365e7d9f0f642e6
diff --git a/src/log.h b/src/log.h
index 4fb0e23..1fa86d2 100644
--- a/src/log.h
+++ b/src/log.h
@@ -294,7 +294,13 @@
   INLINE(static LogEventsAndTags ToNativeByScript(LogEventsAndTags, Script*));
 
   // Profiler's sampling interval (in milliseconds).
+#if defined(ANDROID)
+  // Phones and tablets have processors that are much slower than desktop
+  // and laptop computers for which current heuristics are tuned.
+  static const int kSamplingIntervalMs = 5;
+#else
   static const int kSamplingIntervalMs = 1;
+#endif
 
   // Callback from Log, stops profiling in case of insufficient resources.
   void LogFailure();
diff --git a/src/version.cc b/src/version.cc
index 1d59be3..47e7fe2 100644
--- a/src/version.cc
+++ b/src/version.cc
@@ -35,7 +35,7 @@
 #define MAJOR_VERSION     3
 #define MINOR_VERSION     2
 #define BUILD_NUMBER      10
-#define PATCH_LEVEL       39
+#define PATCH_LEVEL       40
 // Use 1 for candidates and 0 otherwise.
 // (Boolean macro values are not supported by all preprocessors.)
 #define IS_CANDIDATE_VERSION 0