On 2010/12/17 13:44:03, Søren Gjesse wrote:
LGTM, with comment addressed.
When this is landed please make the refactoring of all the printing into
objects-printer.cc as suggested.
Will do. Do you want me to factor out the inline printer functions in
objects.h
into a objects-printer-inl.h file as well?
http://codereview.chromium.org/5998001/diff/35001/src/objects.h
File src/objects.h (right):
http://codereview.chromium.org/5998001/diff/35001/src/objects.h#newcode612
src/objects.h:612: void Print(FILE* out = stdout);
The Google C++ Style Guide does not allow default arguments (see
http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml?showone=Default_Arguments#Default_Arguments),
so plaese make these Print functions into 2 functions. I know we have
default
arguments in the code, as we missed that part of the style guide, but new
code
should adhere.
Done. Replaced the default arg implementation with an overloaded peer
inline
function that calls the respective print function with the would-be default
arg
instead. These changes are only needed and done in objects.h and v8utils.h.
http://codereview.chromium.org/5998001/
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev