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

Issue 2798933003: [regexp] Properly handle HeapNumbers in AdvanceStringIndex (Closed)

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

Description

[regexp] Properly handle HeapNumbers in AdvanceStringIndex This fixes behavior for HeapNumber {index} arguments passed to AdvanceStringIndex. Previously, we'd blindly treat {index} as a Smi. Passing a HeapNumber instead would result in a Smi addition on the tagged HeapNumber pointer. BUG=chromium:709015 Review-Url: https://codereview.chromium.org/2798933003 Cr-Commit-Position: refs/heads/master@{#44458} Committed: https://chromium.googlesource.com/v8/v8/+/ed5496f3cd1b410e1632531799edddfad8afe4f6

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 13

Patch Set 3 : Address comments and rebase #

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -8 lines) Patch
M src/builtins/builtins-regexp-gen.h View 2 1 chunk +1 line, -1 line 0 comments Download
M src/builtins/builtins-regexp-gen.cc View 1 2 4 chunks +31 lines, -7 lines 0 comments Download
A test/mjsunit/regress/regress-6209.js View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (24 generated)
jgruber
3 years, 8 months ago (2017-04-06 14:27:38 UTC) #8
Camillo Bruni
https://codereview.chromium.org/2798933003/diff/20001/src/builtins/builtins-regexp-gen.cc File src/builtins/builtins-regexp-gen.cc (right): https://codereview.chromium.org/2798933003/diff/20001/src/builtins/builtins-regexp-gen.cc#newcode1533 src/builtins/builtins-regexp-gen.cc:1533: CSA_ASSERT(this, IsHeapNumberMap(LoadReceiverMap(index))); nit: add IsNumber() https://codereview.chromium.org/2798933003/diff/20001/src/builtins/builtins-regexp-gen.cc#newcode1534 src/builtins/builtins-regexp-gen.cc:1534: if (is_fastpath) ...
3 years, 8 months ago (2017-04-06 15:10:58 UTC) #10
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/2798933003/60001
3 years, 8 months ago (2017-04-06 16:28:01 UTC) #19
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-06 16:28:02 UTC) #21
jgruber
Thanks for the quick review. Landing this as-is and following up on comments in separate ...
3 years, 8 months ago (2017-04-06 16:28:34 UTC) #22
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/2798933003/60001
3 years, 8 months ago (2017-04-06 16:39:05 UTC) #24
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-06 16:39:06 UTC) #26
Camillo Bruni
LGMT and +1 on follow-up CLs
3 years, 8 months ago (2017-04-06 17:24:27 UTC) #27
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/2798933003/60001
3 years, 8 months ago (2017-04-06 18:35:47 UTC) #29
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started once the ...
3 years, 8 months ago (2017-04-06 18:35:50 UTC) #31
Camillo Bruni
LGTM dammit! ;)
3 years, 8 months ago (2017-04-06 18:40:59 UTC) #32
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/2798933003/60001
3 years, 8 months ago (2017-04-06 18:41:35 UTC) #34
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 18:43:17 UTC) #37
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/v8/v8/+/ed5496f3cd1b410e1632531799edddfad8a...

Powered by Google App Engine
This is Rietveld 408576698