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

Issue 3003593002: [vm] Cleanup Instruction::Effects(), prepare to cleanup Dependencies() (Closed)

Created:
3 years, 4 months ago by alexmarkov
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[vm] Cleanup Instruction::Effects(), prepare to cleanup Dependencies() This CL continues cleanup after Dart_MakeExternalString API was removed in 5b694c1b1ca4a17e5aad865c6c4feb391f1e2b66. * Replace Instruction::Effects() with Instruction::HasSideEffects(). * Prepare to clean up Instruction::Dependencies() - assert that it is used only if AllowsCSE(). In such case it always returns EffectSet::None(). * Clean up 2 separate maps for instructions with dependencies and without dependencies in CSEInstructionMap, as it only works on instructions with AllowsCSE() and, as a consequence, without dependencies. * Clean up code which was testing Dependencies() of CheckClassInstr and CheckClassIdInstr. * Fix LoadStaticFieldInstr::AllowsCSE() to take FLAG_fields_may_be_reset into account - like in LoadStaticFieldInstr::Dependencies(). R=vegorov@google.com Issue: https://github.com/dart-lang/sdk/issues/30474 Committed: https://github.com/dart-lang/sdk/commit/36140a7519ba122a2d81b1731902dbf535ba283c

Patch Set 1 #

Patch Set 2 : TODO comment corrected #

Total comments: 2

Patch Set 3 : Address review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -125 lines) Patch
M runtime/vm/constant_propagator.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph.cc View 1 2 2 chunks +7 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 59 chunks +73 lines, -65 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 2 chunks +12 lines, -4 lines 0 comments Download
M runtime/vm/redundancy_elimination.cc View 1 2 5 chunks +16 lines, -38 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
alexmarkov
3 years, 4 months ago (2017-08-21 21:08:36 UTC) #2
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/3003593002/diff/20001/runtime/vm/intermediate_language.h File runtime/vm/intermediate_language.h (right): https://codereview.chromium.org/3003593002/diff/20001/runtime/vm/intermediate_language.h#newcode877 runtime/vm/intermediate_language.h:877: virtual bool HasSideEffects() const = 0; I would ...
3 years, 4 months ago (2017-08-22 14:08:39 UTC) #3
alexmarkov
https://codereview.chromium.org/3003593002/diff/20001/runtime/vm/intermediate_language.h File runtime/vm/intermediate_language.h (right): https://codereview.chromium.org/3003593002/diff/20001/runtime/vm/intermediate_language.h#newcode877 runtime/vm/intermediate_language.h:877: virtual bool HasSideEffects() const = 0; On 2017/08/22 14:08:39, ...
3 years, 4 months ago (2017-08-22 15:51:57 UTC) #4
alexmarkov
3 years, 4 months ago (2017-08-22 15:53:38 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
36140a7519ba122a2d81b1731902dbf535ba283c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698