Upgrade V8 to 3.6.6.8
authorRyan Dahl <ry@tinyclouds.org>
Tue, 15 Nov 2011 01:17:23 +0000 (17:17 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 15 Nov 2011 01:17:23 +0000 (17:17 -0800)
deps/v8/src/runtime.cc
deps/v8/src/version.cc

index 6cb8d1a2f2d5b4741f47b5fa0fbd0f54698ef5a4..813f98f684a9b4466ef5bb646f8f86e10e8d72a5 100644 (file)
@@ -6841,7 +6841,12 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SparseJoinWithSeparator) {
   // Find total length of join result.
   int string_length = 0;
   bool is_ascii = separator->IsAsciiRepresentation();
-  int max_string_length = SeqAsciiString::kMaxLength;
+  int max_string_length;
+  if (is_ascii) {
+    max_string_length = SeqAsciiString::kMaxLength;
+  } else {
+    max_string_length = SeqTwoByteString::kMaxLength;
+  }
   bool overflow = false;
   CONVERT_NUMBER_CHECKED(int, elements_length,
                          Int32, elements_array->length());
index 865cfe5007b3ce99c8d7a30abf65e14917fd5700..2865502c1f274deb06d10f22997bae51969ee629 100644 (file)
@@ -35,7 +35,7 @@
 #define MAJOR_VERSION     3
 #define MINOR_VERSION     6
 #define BUILD_NUMBER      6
-#define PATCH_LEVEL       7
+#define PATCH_LEVEL       8
 // Use 1 for candidates and 0 otherwise.
 // (Boolean macro values are not supported by all preprocessors.)
 #define IS_CANDIDATE_VERSION 0