Reviewers: Yang,
Description:
Version 3.30.9.1 (merged r24603)
Correctly expand literal buffer for surrogate pairs.
BUG=chromium:423212
LOG=N
[email protected]
Please review this at https://codereview.chromium.org/655563004/
Base URL: https://v8.googlecode.com/svn/trunk
Affected files (+2, -1 lines):
M src/scanner.h
M src/version.cc
Index: src/scanner.h
diff --git a/src/scanner.h b/src/scanner.h
index
d40c6266b729b7edc5a97b1e4057de42a93a0d04..7f35e719da783767d55c96ffe04d29d8b7bb12c3
100644
--- a/src/scanner.h
+++ b/src/scanner.h
@@ -219,6 +219,7 @@ class LiteralBuffer {
*reinterpret_cast<uint16_t*>(&backing_store_[position_]) =
unibrow::Utf16::LeadSurrogate(code_unit);
position_ += kUC16Size;
+ if (position_ >= backing_store_.length()) ExpandBuffer();
*reinterpret_cast<uint16_t*>(&backing_store_[position_]) =
unibrow::Utf16::TrailSurrogate(code_unit);
position_ += kUC16Size;
Index: src/version.cc
diff --git a/src/version.cc b/src/version.cc
index
2add43c6f6e987acb70cd38511d4a0cf5a2918e1..e7127048c37dfe8ee23a495444b361ec30832359
100644
--- a/src/version.cc
+++ b/src/version.cc
@@ -35,7 +35,7 @@
#define MAJOR_VERSION 3
#define MINOR_VERSION 30
#define BUILD_NUMBER 9
-#define PATCH_LEVEL 0
+#define PATCH_LEVEL 1
// Use 1 for candidates and 0 otherwise.
// (Boolean macro values are not supported by all preprocessors.)
#define IS_CANDIDATE_VERSION 0
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.