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

Issue 12315063: Making CompileType a Value object. (Closed)

Created:
7 years, 10 months ago by srdjan
Modified:
7 years, 10 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Making CompileType a Value object. Committed: https://code.google.com/p/dart/source/detail?r=18937

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -1 line) Patch
M runtime/vm/intermediate_language.h View 1 chunk +14 lines, -1 line 2 comments Download

Messages

Total messages: 6 (0 generated)
srdjan
7 years, 10 months ago (2013-02-23 00:16:48 UTC) #1
Vyacheslav Egorov (Google)
LGTM! Thanks, I was actually planning to address this next week.
7 years, 10 months ago (2013-02-23 00:31:43 UTC) #2
srdjan
Committed patchset #2 manually as r18937 (presubmit successful).
7 years, 10 months ago (2013-02-23 00:58:45 UTC) #3
Florian Schneider
https://codereview.chromium.org/12315063/diff/5001/runtime/vm/intermediate_language.h File runtime/vm/intermediate_language.h (right): https://codereview.chromium.org/12315063/diff/5001/runtime/vm/intermediate_language.h#newcode133 runtime/vm/intermediate_language.h:133: This introduces additional unnecessary dependencies, i.e. whenever adding a ...
7 years, 10 months ago (2013-02-25 11:18:20 UTC) #4
srdjan
https://codereview.chromium.org/12315063/diff/5001/runtime/vm/intermediate_language.h File runtime/vm/intermediate_language.h (right): https://codereview.chromium.org/12315063/diff/5001/runtime/vm/intermediate_language.h#newcode133 runtime/vm/intermediate_language.h:133: On 2013/02/25 11:18:20, Florian Schneider wrote: > This introduces ...
7 years, 10 months ago (2013-02-25 17:30:36 UTC) #5
Florian Schneider
7 years, 10 months ago (2013-02-25 18:33:41 UTC) #6
Message was sent while issue was closed.
On 2013/02/25 17:30:36, srdjan wrote:
>
https://codereview.chromium.org/12315063/diff/5001/runtime/vm/intermediate_la...
> File runtime/vm/intermediate_language.h (right):
> 
>
https://codereview.chromium.org/12315063/diff/5001/runtime/vm/intermediate_la...
> runtime/vm/intermediate_language.h:133: 
> On 2013/02/25 11:18:20, Florian Schneider wrote:
> > This introduces additional unnecessary dependencies, i.e. whenever adding a
> > field to CompileType, both have to be updated. Why duplicate the default
> > behavior of both the copy constructor and the assignment object?
> 
> What do you suggest as alternative? Implicit copy constructors should not be
> used (see Google style guide).

In most classes we disable both anyway. There are only few places where we
actually need a copy constructor (e.g. class Location, CompileType, some
iterator classes).

I think a comment saying that the default implementation does the right thing in
such a case would be enough.

Powered by Google App Engine
This is Rietveld 408576698