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

Issue 2098643003: VM: [AOT] Make sure that we inline all resolved accessor invocations. (Closed)

Created:
4 years, 6 months ago by Vyacheslav Egorov (Google)
Modified:
4 years, 5 months ago
Reviewers:
Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM: [AOT] Make sure that we inline all resolved accessor invocations. Previously we would just replace it with a static call and hope that inliner handles it. However sometimes it happens too late in the pipeline and inliner misses the opportunity. Additionally drop some dead code from the aot_optimizer that was not doing anything useful because FlowGraphInliner::TryInlineRecognizedMethod always returns false in the AOT mode. R=fschneider@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/31057dcec7419ef6b8ddc0d458989f7bad2fcc81

Patch Set 1 #

Total comments: 3

Patch Set 2 : Done. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -10 lines) Patch
M runtime/vm/aot_optimizer.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/aot_optimizer.cc View 1 3 chunks +40 lines, -8 lines 0 comments Download
M runtime/vm/assembler_arm.cc View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
Vyacheslav Egorov (Google)
4 years, 6 months ago (2016-06-24 14:03:52 UTC) #1
Vyacheslav Egorov (Google)
A lot of the code in the AOT pipeline feels really clanky because we use ...
4 years, 6 months ago (2016-06-24 14:06:11 UTC) #2
Florian Schneider
https://codereview.chromium.org/2098643003/diff/1/runtime/vm/aot_optimizer.cc File runtime/vm/aot_optimizer.cc (left): https://codereview.chromium.org/2098643003/diff/1/runtime/vm/aot_optimizer.cc#oldcode741 runtime/vm/aot_optimizer.cc:741: bool AotOptimizer::TryReplaceWithIndexedOp(InstanceCallInstr* call) { I'd keep this code around: ...
4 years, 6 months ago (2016-06-24 16:09:58 UTC) #3
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2098643003/diff/1/runtime/vm/aot_optimizer.cc File runtime/vm/aot_optimizer.cc (left): https://codereview.chromium.org/2098643003/diff/1/runtime/vm/aot_optimizer.cc#oldcode741 runtime/vm/aot_optimizer.cc:741: bool AotOptimizer::TryReplaceWithIndexedOp(InstanceCallInstr* call) { I think it does not ...
4 years, 6 months ago (2016-06-24 16:13:05 UTC) #4
Florian Schneider
https://codereview.chromium.org/2098643003/diff/1/runtime/vm/aot_optimizer.cc File runtime/vm/aot_optimizer.cc (left): https://codereview.chromium.org/2098643003/diff/1/runtime/vm/aot_optimizer.cc#oldcode741 runtime/vm/aot_optimizer.cc:741: bool AotOptimizer::TryReplaceWithIndexedOp(InstanceCallInstr* call) { On 2016/06/24 16:13:04, Vyacheslav Egorov ...
4 years, 6 months ago (2016-06-24 22:48:17 UTC) #5
Vyacheslav Egorov (Google)
Please take another look. I restored all code that does nothing, will look into refactoring ...
4 years, 5 months ago (2016-06-27 11:01:22 UTC) #6
Florian Schneider
Lgtm. btw: I can also look into enabling inlining of recognized methods for AOT.
4 years, 5 months ago (2016-06-27 14:17:26 UTC) #7
Vyacheslav Egorov (Google)
4 years, 5 months ago (2016-06-27 15:15:31 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
31057dcec7419ef6b8ddc0d458989f7bad2fcc81 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698