Chromium Code Reviews
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 #
Messages
Total messages: 6 (2 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||