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

Issue 257893004: Fix and improve Map::CurrentMapForDeprecatedInternal(). (Closed)

Created:
6 years, 8 months ago by Benedikt Meurer
Modified:
6 years, 7 months ago
CC:
v8-dev
Base URL:
git@github.com:v8/v8.git@master
Visibility:
Public.

Description

Fix and improve Map::CurrentMapForDeprecatedInternal(). Inline relevant bits from Map::FindUpdatedMap() and Map::IsMoreGeneralThan() into Map::CurrentMapForDeprecatedInternal() to fix issues introduced with field type tracking, avoid the useless second pass over the transition tree, and finally make it easier to understand what this method actually does. TEST=mjsunit/regress/regress-365172-2 R=svenpanne@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=20997 Committed: https://code.google.com/p/v8/source/detail?r=21010

Patch Set 1 #

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

Messages

Total messages: 8 (0 generated)
Benedikt Meurer
PTAL
6 years, 7 months ago (2014-04-28 05:54:25 UTC) #1
Sven Panne
lgtm
6 years, 7 months ago (2014-04-28 06:28:30 UTC) #2
Benedikt Meurer
Committed patchset #1 manually as r20997 (presubmit successful).
6 years, 7 months ago (2014-04-28 06:31:29 UTC) #3
Benedikt Meurer
Committed patchset #1 manually as r21010 (presubmit successful).
6 years, 7 months ago (2014-04-28 11:09:15 UTC) #4
Toon Verwaest
This CL definitely does not LGTM. Especially given that the actually committed change is ~2-3x ...
6 years, 7 months ago (2014-05-06 13:39:59 UTC) #5
Benedikt Meurer
There was no abstraction. FindUpdatedMap() was basically wrong for both call sites, that's why we ...
6 years, 7 months ago (2014-05-07 06:35:55 UTC) #6
Toon Verwaest
Then why does it look like now there are around 200 lines of extra code ...
6 years, 7 months ago (2014-05-07 07:50:22 UTC) #7
Benedikt Meurer
6 years, 7 months ago (2014-05-07 08:05:21 UTC) #8
Message was sent while issue was closed.
There are only ~40 additional lines of "extra code" in this CL, and they express
exactly what Map::CurrentMapForDeprecatedInternal() is supposed to do. That's
way more readable (and certainly more correct) than using FindUpdatedMap() and
IsMoreGeneralThan().

Powered by Google App Engine
This is Rietveld 408576698