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

Issue 2818683005: [regexp] Avoid side effects between map load and fast path check (Closed)

Created:
3 years, 8 months ago by jgruber
Modified:
3 years, 8 months ago
CC:
v8-merges_googlegroups.com, v8-reviews_googlegroups.com, Yang
Target Ref:
refs/branch-heads/5.8
Project:
v8
Visibility:
Public.

Description

[regexp] Avoid side effects between map load and fast path check Loading the map, performing a side-effect, and then using the stored pointer for the fast-path check is another antipattern that can lead to unintended shapes on the fast path. Backmerge of commit db61537afcbc4ed1914152aad302a9788bc80d0f. BUG=chromium:709029 TBR=yangguo@chromium.org NOPRESUBMIT=true NOTRY=true Review-Url: https://codereview.chromium.org/2818683005 Cr-Commit-Position: refs/branch-heads/5.8@{#67} Cr-Branched-From: eda659cc5e307f20ac1ad542ba12ab32eaf4c7ef-refs/heads/5.8.283@{#1} Cr-Branched-From: 4310cd02d2160b1457baed81a2f40063eb264a21-refs/heads/master@{#43429} Committed: https://chromium.googlesource.com/v8/v8/+/5c39a615569250e40414dcdb7a6d60a326c51ebb

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -24 lines) Patch
M src/builtins/builtins-regexp.cc View 7 chunks +27 lines, -24 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
jgruber
Hey Adam, this is a manual backmerge for https://bugs.chromium.org/p/chromium/issues/detail?id=709029. It includes only the relevant parts ...
3 years, 8 months ago (2017-04-15 08:02:31 UTC) #6
jochen (gone - plz use gerrit)
lgtm
3 years, 8 months ago (2017-04-17 16:21:21 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/2818683005/1
3 years, 8 months ago (2017-04-17 16:22:44 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/v8/v8/+/5c39a615569250e40414dcdb7a6d60a326c51ebb
3 years, 8 months ago (2017-04-17 16:23:03 UTC) #15
adamk
3 years, 8 months ago (2017-04-17 17:42:40 UTC) #16
Message was sent while issue was closed.
lgtm, but jochen beat me to it. Thanks for the fix!

Powered by Google App Engine
This is Rietveld 408576698