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

Issue 3036046: Check ASCIIness of lhs, not this. (Closed)

Created:
10 years, 4 months ago by antonm
Modified:
9 years, 4 months ago
Reviewers:
Vitaly Repeshko
CC:
v8-dev
Visibility:
Public.

Description

Check ASCIIness of lhs, not this. In one pathalogical case it's possible to have this->IsAsciiRepresentation() && !this->TryFlattenGetString()->IsAsciiRepresentation()---if cons string has two byte string which holds only ascii chars and second is an empty string. In this case we would return first which is not AsciiRepresentation(), however cons is. Committed: http://code.google.com/p/v8/source/detail?r=5188

Patch Set 1 #

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

Messages

Total messages: 2 (0 generated)
antonm
Vitaly, may you have a look?
10 years, 4 months ago (2010-08-05 16:23:21 UTC) #1
Vitaly Repeshko
10 years, 4 months ago (2010-08-05 16:31:50 UTC) #2
LGTM!

Can we add a test for this? It should hit an assert in String::ToAsciiVector in
the case you describe.


Thanks,
Vitaly

Powered by Google App Engine
This is Rietveld 408576698