Revision: 17621
Author: [email protected]
Date: Mon Nov 11 15:28:47 2013 UTC
Log: Fix potential assertion failure.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/68913002
http://code.google.com/p/v8/source/detail?r=17621
Modified:
/branches/bleeding_edge/src/factory.cc
/branches/bleeding_edge/src/objects.cc
/branches/bleeding_edge/src/objects.h
=======================================
--- /branches/bleeding_edge/src/factory.cc Tue Nov 5 15:36:15 2013 UTC
+++ /branches/bleeding_edge/src/factory.cc Mon Nov 11 15:28:47 2013 UTC
@@ -310,8 +310,7 @@
Handle<String> Factory::NewFlatConcatString(Handle<String> first,
Handle<String> second) {
int total_length = first->length() + second->length();
- if (first->IsOneByteRepresentationUnderneath() &&
- second->IsOneByteRepresentationUnderneath()) {
+ if (first->IsOneByteRepresentation() &&
second->IsOneByteRepresentation()) {
return ConcatStringContent<uint8_t>(
NewRawOneByteString(total_length), first, second);
} else {
=======================================
--- /branches/bleeding_edge/src/objects.cc Fri Nov 8 19:33:05 2013 UTC
+++ /branches/bleeding_edge/src/objects.cc Mon Nov 11 15:28:47 2013 UTC
@@ -8337,11 +8337,6 @@
int* length_return) {
return ToCString(allow_nulls, robust_flag, 0, -1, length_return);
}
-
-
-const uc16* String::GetTwoByteData() {
- return GetTwoByteData(0);
-}
const uc16* String::GetTwoByteData(unsigned start) {
=======================================
--- /branches/bleeding_edge/src/objects.h Fri Nov 8 19:33:05 2013 UTC
+++ /branches/bleeding_edge/src/objects.h Mon Nov 11 15:28:47 2013 UTC
@@ -8611,7 +8611,6 @@
static const int kMaxShortPrintLength = 1024;
// Support for regular expressions.
- const uc16* GetTwoByteData();
const uc16* GetTwoByteData(unsigned start);
// Helper function for flattening strings.
--
--
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/groups/opt_out.