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

Issue 12091091: Move recording of definition used from the value to the definition. (Closed)

Created:
7 years, 10 months ago by Kevin Millikin (Google)
Modified:
7 years, 10 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Move recording of definition uses from the value to the definition. It was weird that this method mutated an object that wasn't even mentioned in the call. Also, change Definition::ReplaceUsesWith so that it appends all at once instead of consing each individual use. Committed: https://code.google.com/p/dart/source/detail?r=18048

Patch Set 1 #

Total comments: 1

Patch Set 2 : Restored RemoveFromUseList to class Value. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -59 lines) Patch
M runtime/vm/flow_graph.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 5 chunks +13 lines, -12 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 3 chunks +7 lines, -6 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 4 chunks +53 lines, -38 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Kevin Millikin (Google)
https://codereview.chromium.org/12091091/diff/1/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/12091091/diff/1/runtime/vm/intermediate_language.cc#newcode1726 runtime/vm/intermediate_language.cc:1726: null_constant->AddInputUse(instantiator_type_arguments()); These three lines are going to get combined ...
7 years, 10 months ago (2013-01-31 16:37:13 UTC) #1
Kevin Millikin (Google)
As discussed offline, I restored the remove function to class Value. I made it more ...
7 years, 10 months ago (2013-02-01 09:33:18 UTC) #2
Kevin Millikin (Google)
https://codereview.chromium.org/12091091/diff/1005/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/12091091/diff/1005/runtime/vm/intermediate_language.cc#newcode649 runtime/vm/intermediate_language.cc:649: prev->set_next_use(next); Here we still assume use lists are coherent. ...
7 years, 10 months ago (2013-02-01 09:35:24 UTC) #3
Vyacheslav Egorov (Google)
7 years, 10 months ago (2013-02-01 14:38:19 UTC) #4
lgtm

https://codereview.chromium.org/12091091/diff/1005/runtime/vm/intermediate_la...
File runtime/vm/intermediate_language.cc (right):

https://codereview.chromium.org/12091091/diff/1005/runtime/vm/intermediate_la...
runtime/vm/intermediate_language.cc:691: current->set_next_use(next);
There is a bit of duplicated code here with above one. Consider making a
function.

Powered by Google App Engine
This is Rietveld 408576698