R=yangguo@chromium.org
Review URL: https://codereview.chromium.org/
510013002
Patch from Slava Chigrin <vchigrin@yandex-team.ru>.
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23488
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
current_contents == current[-1]) {
DCHECK(!serializer_->isolate()->heap()->InNewSpace(current_contents));
int repeat_count = 1;
- while (current < end - 1 && current[repeat_count] == current_contents) {
+ while (¤t[repeat_count] < end - 1 &&
+ current[repeat_count] == current_contents) {
repeat_count++;
}
current += repeat_count;