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

Issue 2736383003: [regexp] Properly flatten string during initialization (Closed)

Created:
3 years, 9 months ago by jgruber
Modified:
3 years, 9 months ago
Reviewers:
Yang
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[regexp] Properly flatten string during initialization This fixes an incorrect usage of String::Flatten in EscapeRegExpSource. It also adds %ConstructConsString (to easily and reliably construct cons strings in tests) and Factory::NewConsString (to enable guaranteed cons string construction without preemptive flattening attempts). BUG=chromium:698790 Review-Url: https://codereview.chromium.org/2736383003 Cr-Commit-Position: refs/heads/master@{#43686} Committed: https://chromium.googlesource.com/v8/v8/+/5002a4a96144cd1c1d2031314e39c7dee68fc450

Patch Set 1 #

Total comments: 2

Patch Set 2 : Better DCHECKs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -5 lines) Patch
M src/factory.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/factory.cc View 1 1 chunk +13 lines, -3 lines 0 comments Download
M src/objects.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/regexp/jsregexp.cc View 2 chunks +3 lines, -1 line 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-test.cc View 1 chunk +14 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-698790.js View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
jgruber
3 years, 9 months ago (2017-03-09 08:49:21 UTC) #4
Yang
On 2017/03/09 08:49:21, jgruber wrote: lgtm.
3 years, 9 months ago (2017-03-09 09:36:57 UTC) #7
Yang
https://codereview.chromium.org/2736383003/diff/1/src/factory.cc File src/factory.cc (right): https://codereview.chromium.org/2736383003/diff/1/src/factory.cc#newcode722 src/factory.cc:722: DCHECK(0 <= length && length <= String::kMaxLength); The 0 ...
3 years, 9 months ago (2017-03-09 09:37:07 UTC) #8
jgruber
https://codereview.chromium.org/2736383003/diff/1/src/factory.cc File src/factory.cc (right): https://codereview.chromium.org/2736383003/diff/1/src/factory.cc#newcode722 src/factory.cc:722: DCHECK(0 <= length && length <= String::kMaxLength); On 2017/03/09 ...
3 years, 9 months ago (2017-03-09 09:55:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2736383003/20001
3 years, 9 months ago (2017-03-09 09:57:09 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-09 12:25:30 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/5002a4a96144cd1c1d2031314e39c7dee68...

Powered by Google App Engine
This is Rietveld 408576698