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

Issue 2498073004: AOT: Fix bug in receiver type propagation after unique selector calls. (Closed)

Created:
4 years, 1 month ago by Florian Schneider
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

AOT: Fix bug in receiver type propagation after unique selector calls. Insert Redefinition instructions to prohibit unsafe code motion. If we propagate the receiver type downwards from a call to a unique selector, we must not hoist instructions that were optimized using this type information across the call. R=vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/890bfa80154227e1b5fc0e15d0c0ef5f6b16e013

Patch Set 1 #

Patch Set 2 : add test file #

Total comments: 6

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -45 lines) Patch
M runtime/vm/aot_optimizer.cc View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph.h View 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph.cc View 1 chunk +40 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_range_analysis.cc View 2 chunks +1 line, -45 lines 0 comments Download
A tests/language/vm/optimized_unique_selector_test.dart View 1 2 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Florian Schneider
4 years, 1 month ago (2016-11-15 22:53:33 UTC) #2
Vyacheslav Egorov (Google)
LGTM but consider the comment. https://codereview.chromium.org/2498073004/diff/20001/runtime/vm/aot_optimizer.cc File runtime/vm/aot_optimizer.cc (right): https://codereview.chromium.org/2498073004/diff/20001/runtime/vm/aot_optimizer.cc#newcode294 runtime/vm/aot_optimizer.cc:294: // Add redefinition of ...
4 years, 1 month ago (2016-11-16 10:16:34 UTC) #3
Vyacheslav Egorov (Google)
https://codereview.chromium.org/2498073004/diff/20001/tests/language/vm/optimized_unique_selector_test.dart File tests/language/vm/optimized_unique_selector_test.dart (right): https://codereview.chromium.org/2498073004/diff/20001/tests/language/vm/optimized_unique_selector_test.dart#newcode13 tests/language/vm/optimized_unique_selector_test.dart:13: var res = 0; incorrect indentation
4 years, 1 month ago (2016-11-16 12:55:06 UTC) #4
Florian Schneider
https://codereview.chromium.org/2498073004/diff/20001/runtime/vm/aot_optimizer.cc File runtime/vm/aot_optimizer.cc (right): https://codereview.chromium.org/2498073004/diff/20001/runtime/vm/aot_optimizer.cc#newcode294 runtime/vm/aot_optimizer.cc:294: // Add redefinition of the receiver to prevent code ...
4 years, 1 month ago (2016-11-16 17:55:18 UTC) #5
Florian Schneider
4 years, 1 month ago (2016-11-16 18:14:46 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
890bfa80154227e1b5fc0e15d0c0ef5f6b16e013 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698