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

Issue 22681004: Instance-type-related fixes and cleanup. (Closed)

Created:
7 years, 4 months ago by Sven Panne
Modified:
7 years, 4 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Instance-type-related fixes and cleanup. Things got quite a bit out of sync (don't we all love copy-n-paste?): * TypeToString didn't handle SLICED_STRING_TYPE, SLICED_ASCII_STRING_TYPE, FIXED_DOUBLE_ARRAY_TYPE, JS_FUNCTION_PROXY_TYPE and JS_DATE_TYPE. * INSTANCE_TYPE_LIST was missing entries for SLICED_ASCII_STRING_TYPE, JS_SET_TYPE, and JS_MAP_TYPE. To improve this maintenance nightmare a little bit, the missing instance types were added to the INSTANCE_TYPE_LIST macro and this list is now used via our beloved 2nd order macro technique in TypeToString. As a side-effect, the strings returned by TypeToString have a "_TYPE" suffix now, but this doesn't really matter and is a small price to pay for consistency. Removed INVALID_TYPE on the way, it had no real use. R=mstarzinger@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=16120

Patch Set 1 #

Total comments: 2

Patch Set 2 : Feedback. Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -85 lines) Patch
M src/factory.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M src/objects.h View 3 chunks +3 lines, -1 line 0 comments Download
M src/objects-printer.cc View 1 2 chunks +5 lines, -79 lines 0 comments Download
M tools/v8heapconst.py View 4 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Sven Panne
7 years, 4 months ago (2013-08-08 13:01:53 UTC) #1
Michael Starzinger
LGTM (with a nit). https://codereview.chromium.org/22681004/diff/1/src/objects-printer.cc File src/objects-printer.cc (right): https://codereview.chromium.org/22681004/diff/1/src/objects-printer.cc#newcode514 src/objects-printer.cc:514: return ""; // Keep the ...
7 years, 4 months ago (2013-08-09 08:20:39 UTC) #2
Sven Panne
Committed patchset #2 manually as r16120 (presubmit successful).
7 years, 4 months ago (2013-08-09 08:22:52 UTC) #3
Sven Panne
7 years, 4 months ago (2013-08-09 08:39:02 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/22681004/diff/1/src/objects-printer.cc
File src/objects-printer.cc (right):

https://codereview.chromium.org/22681004/diff/1/src/objects-printer.cc#newcod...
src/objects-printer.cc:514: return "";  // Keep the compiler happy.
On 2013/08/09 08:20:39, Michael Starzinger wrote:
> nit: Let's return "UNKNOWN" so that the object printer prints something for
> corrupted heaps in release mode.

Done.

Powered by Google App Engine
This is Rietveld 408576698