Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(352)

Issue 82733003: Fix combined string length computation. (Closed)

Created:
7 years, 1 month ago by Benedikt Meurer
Modified:
7 years, 1 month ago
Reviewers:
mvstanton
CC:
v8-dev
Visibility:
Public.

Description

Fix combined string length computation. For 31-bit smis, we don't need to explicitly check whether the combined string length exceeds the max supported string length, since the value must be converted to a smi at some point (i.e. when it is stored into the string length field of the resulting string), which will emit an overflow check. For 32-bit smis, we insert an explicit check that the combined string length does not exceed String::kMaxLength. This also enables to get rid of the JoinContinuation() usage in BuildUncheckedStringAdd(). BUG=v8:2990 LOG=n R=mvstanton@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=18005

Patch Set 1 #

Patch Set 2 : Fix indentation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -217 lines) Patch
M src/hydrogen.cc View 1 1 chunk +206 lines, -217 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Benedikt Meurer
Hey Michael, Here's a nice one for you. Finally found a solution to the string ...
7 years, 1 month ago (2013-11-22 08:17:43 UTC) #1
mvstanton
very nice! lgtm.
7 years, 1 month ago (2013-11-22 12:01:45 UTC) #2
Benedikt Meurer
7 years, 1 month ago (2013-11-22 12:03:07 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r18005 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698