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

Issue 8491041: Fix missing fast property accessors in heap snapshots. (Closed)

Created:
9 years, 1 month ago by loislo
Modified:
9 years, 1 month ago
Visibility:
Public.

Description

Fix missing fast property accessors in heap snapshots. Implementation for this case var x = {}; x.__defineGetter__("y", function Y() { return 42; }); BUG=v8:1818 TEST=cctest/test-heap-profiler/FastCaseGetter Committed: http://code.google.com/p/v8/source/detail?r=9985

Patch Set 1 #

Patch Set 2 : small adjustments for tests #

Total comments: 5

Patch Set 3 : comments addressed #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -10 lines) Patch
M src/objects.h View 1 2 1 chunk +5 lines, -0 lines 1 comment Download
M src/objects.cc View 1 2 2 chunks +0 lines, -6 lines 1 comment Download
M src/profile-generator.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/profile-generator.cc View 1 2 5 chunks +26 lines, -4 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
loislo
patch
9 years, 1 month ago (2011-11-11 15:06:45 UTC) #1
mnaganov (inactive)
Thank you very much for fixing this! There are only stylistic problems. http://codereview.chromium.org/8491041/diff/1001/src/objects.h File src/objects.h ...
9 years, 1 month ago (2011-11-11 22:47:46 UTC) #2
mnaganov (inactive)
...and I don't think we need to duplicate bug description in the commit description. On ...
9 years, 1 month ago (2011-11-11 22:48:47 UTC) #3
loislo
comments addressed
9 years, 1 month ago (2011-11-12 17:11:57 UTC) #4
mnaganov (inactive)
LGTM, I'll fix the missing empty line issue before landing. http://codereview.chromium.org/8491041/diff/7001/src/objects.cc File src/objects.cc (left): http://codereview.chromium.org/8491041/diff/7001/src/objects.cc#oldcode211 ...
9 years, 1 month ago (2011-11-14 10:22:38 UTC) #5
mnaganov (inactive)
9 years, 1 month ago (2011-11-14 11:04:24 UTC) #6
http://codereview.chromium.org/8491041/diff/7001/src/objects.h
File src/objects.h (right):

http://codereview.chromium.org/8491041/diff/7001/src/objects.h#newcode1891
src/objects.h:1891: static const int kGetterIndex = 0;
Funny enough, your code wasn't compiling with gcc 4.4 in _debug_ mode -- linker
error, and I have discovered that this is due to the need of definitions for
these statics:
http://stackoverflow.com/questions/4891067/weird-undefined-symbols-of-static-...,
so I have added them.

Also interesting that gcc in release mode and clang were not requiring this.

Powered by Google App Engine
This is Rietveld 408576698