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

Issue 2249873004: [js2c] Fix ordering issue of TextMacro expansion (Closed)

Created:
4 years, 4 months ago by Jakob Kummerow
Modified:
4 years, 4 months ago
Reviewers:
Dan Ehrenberg
CC:
v8-reviews_googlegroups.com, Yang, zoeclifford2
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[js2c] Fix ordering issue of TextMacro expansion If a key is a substring of an earlier value, then the earlier value will unintentionally be clobbered. For example with: macro SET_PRIVATE(obj, sym, val) = (obj[sym] = val); SET_PRIVATE(iterator, arrayIteratorObjectSymbol, object); if the mapping is: {'val': 'object', 'obj': 'iterator', 'sym': 'arrayIteratorObjectSymbol'} then 'obj' -> 'iterator' will clobber 'val' -> 'object', resulting in 'val' -> 'iteratorect'. To fix this, replace all substitutions simultaneously. Patch from Zoe Clifford <zoeclifford@google.com>; Committed: https://crrev.com/95db63ab6b87415e17eadc5b7caf7efbc3217e76 Cr-Commit-Position: refs/heads/master@{#38665}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M tools/js2c.py View 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Jakob Kummerow
Dan: PTAL. Yang, Zoe: FYI. Sure would be nice if we had test coverage of ...
4 years, 4 months ago (2016-08-16 13:55:26 UTC) #2
Dan Ehrenberg
lgtm This is great! I think I've run into this bug as well.
4 years, 4 months ago (2016-08-16 15:03:52 UTC) #3
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/2249873004/1
4 years, 4 months ago (2016-08-16 16:28:32 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-16 16:51:24 UTC) #6
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 16:51:51 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/95db63ab6b87415e17eadc5b7caf7efbc3217e76
Cr-Commit-Position: refs/heads/master@{#38665}

Powered by Google App Engine
This is Rietveld 408576698