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

Issue 10829451: Make Value not a subclass of Computation. (Closed)

Created:
8 years, 4 months ago by Florian Schneider
Modified:
8 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Make Value not a subclass of Computation. Instead I introduce one new computation to materialize constants. sizeof(UseVal) drops from 64 to 32. sizeof(ConstantVal) drops from 48 to 16. Committed: https://code.google.com/p/dart/source/detail?r=11041

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -62 lines) Patch
M runtime/vm/flow_graph.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_builder.h View 1 1 chunk +2 lines, -0 lines 1 comment Download
M runtime/vm/flow_graph_builder.cc View 1 18 chunks +25 lines, -20 lines 0 comments Download
M runtime/vm/il_printer.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 10 chunks +71 lines, -11 lines 2 comments Download
M runtime/vm/intermediate_language.cc View 1 7 chunks +20 lines, -19 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language_test.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Florian Schneider
8 years, 4 months ago (2012-08-21 13:23:25 UTC) #1
Kevin Millikin (Google)
LGTM, but it seems somewhere in the middle of: 1. Constants and variables are pure ...
8 years, 4 months ago (2012-08-21 13:32:22 UTC) #2
srdjan
DBC https://chromiumcodereview.appspot.com/10829451/diff/2002/runtime/vm/flow_graph_builder.h File runtime/vm/flow_graph_builder.h (right): https://chromiumcodereview.appspot.com/10829451/diff/2002/runtime/vm/flow_graph_builder.h#newcode120 runtime/vm/flow_graph_builder.h:120: // Build a computation for a constant value. ...
8 years, 4 months ago (2012-08-21 22:14:53 UTC) #3
Florian Schneider
8 years, 4 months ago (2012-08-22 10:59:00 UTC) #4
https://chromiumcodereview.appspot.com/10829451/diff/2002/runtime/vm/intermed...
File runtime/vm/intermediate_language.h (right):

https://chromiumcodereview.appspot.com/10829451/diff/2002/runtime/vm/intermed...
runtime/vm/intermediate_language.h:332: FOR_EACH_VALUE(DECLARE_PREDICATE)
On 2012/08/21 22:14:53, srdjan wrote:
> Is it worth going through all this for just two subclasses: UseVal and
Constant?
> Do you imagine we can have more subclasses of Value in near future?

Yes, maybe we can get rid of ConstantVal completely and have only one class
UseValue?

Powered by Google App Engine
This is Rietveld 408576698