Fixing build errors.
Review URL: http://codereview.chromium.org/8540007 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9981 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
0e47d6e417
commit
7c209a555f
@ -6970,8 +6970,12 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_SparseJoinWithSeparator) {
|
|||||||
// Find total length of join result.
|
// Find total length of join result.
|
||||||
int string_length = 0;
|
int string_length = 0;
|
||||||
bool is_ascii = separator->IsAsciiRepresentation();
|
bool is_ascii = separator->IsAsciiRepresentation();
|
||||||
int max_string_length = is_ascii ? SeqAsciiString::kMaxLength
|
int max_string_length;
|
||||||
: SeqTwoByteString::kMaxLength;
|
if (is_ascii) {
|
||||||
|
max_string_length = SeqAsciiString::kMaxLength;
|
||||||
|
} else {
|
||||||
|
max_string_length = SeqTwoByteString::kMaxLength;
|
||||||
|
}
|
||||||
bool overflow = false;
|
bool overflow = false;
|
||||||
CONVERT_NUMBER_CHECKED(int, elements_length,
|
CONVERT_NUMBER_CHECKED(int, elements_length,
|
||||||
Int32, elements_array->length());
|
Int32, elements_array->length());
|
||||||
|
Loading…
Reference in New Issue
Block a user