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

Issue 184523002: Allocation sinking for contexts. (Closed)

Created:
6 years, 9 months ago by Florian Schneider
Modified:
6 years, 1 month ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Allocation sinking for contexts. Improved aliasing computation in presence of Redefinition and AssertAssignable. Added possibility for inlining annotations via --enable-inlining-annotations flag. R=vegorov@google.com Committed: https://code.google.com/p/dart/source/detail?r=41713

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : support Redefinitions in alias computation #

Total comments: 3

Patch Set 7 : fixed aliasing computation #

Patch Set 8 : fixed Context to allow Object as values #

Patch Set 9 : added tests #

Total comments: 8

Patch Set 10 : addressed latest comments #

Patch Set 11 : added new test #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+529 lines, -156 lines) Patch
M runtime/lib/function.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/debugger.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/debugger.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 1 comment Download
M runtime/vm/deferred_objects.h View 1 2 3 4 5 6 7 8 12 chunks +19 lines, -14 lines 0 comments Download
M runtime/vm/deferred_objects.cc View 1 2 3 4 5 6 7 8 3 chunks +82 lines, -30 lines 0 comments Download
M runtime/vm/deopt_instructions.h View 1 2 3 4 5 6 7 8 6 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/deopt_instructions.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/flow_graph_inliner.cc View 1 2 3 4 5 6 7 8 9 5 chunks +36 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_optimizer.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -6 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 4 5 6 7 8 9 20 chunks +61 lines, -34 lines 0 comments Download
M runtime/vm/il_printer.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 4 5 6 7 8 6 chunks +63 lines, -33 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/parser.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/parser.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -12 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -3 lines 0 comments Download
A tests/language/vm/load_elimination_any_use_creates_alias_test.dart View 1 2 3 4 5 6 7 8 1 chunk +52 lines, -0 lines 0 comments Download
A tests/language/vm/load_elimination_has_loads_from_place_test.dart View 1 2 3 4 5 6 7 8 9 1 chunk +58 lines, -0 lines 0 comments Download
A tests/language/vm/load_elimination_mark_stored_values_escaping_test.dart View 1 2 3 4 5 6 7 8 1 chunk +64 lines, -0 lines 0 comments Download
A tests/language/vm/load_elimination_two_redefinitions_test.dart View 1 2 3 4 5 6 7 8 9 10 1 chunk +59 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Florian Schneider
6 years, 1 month ago (2014-10-31 16:05:32 UTC) #2
Florian Schneider
New patchset that works without repeated load optimization.
6 years, 1 month ago (2014-11-03 13:05:17 UTC) #3
Vyacheslav Egorov (Google)
needs tests https://codereview.chromium.org/184523002/diff/100001/runtime/vm/deopt_instructions.cc File runtime/vm/deopt_instructions.cc (right): https://codereview.chromium.org/184523002/diff/100001/runtime/vm/deopt_instructions.cc#newcode1246 runtime/vm/deopt_instructions.cc:1246: AddConstant(Smi::Handle(Smi::New(mat->num_variables())), dest_index++); Can you avoid writing it ...
6 years, 1 month ago (2014-11-03 13:37:49 UTC) #4
Florian Schneider
https://codereview.chromium.org/184523002/diff/100001/runtime/vm/deopt_instructions.cc File runtime/vm/deopt_instructions.cc (right): https://codereview.chromium.org/184523002/diff/100001/runtime/vm/deopt_instructions.cc#newcode1246 runtime/vm/deopt_instructions.cc:1246: AddConstant(Smi::Handle(Smi::New(mat->num_variables())), dest_index++); On 2014/11/03 13:37:48, Vyacheslav Egorov (Google) wrote: ...
6 years, 1 month ago (2014-11-04 13:28:57 UTC) #5
Florian Schneider
PTAL. Added tests and inlining annotation to make the tests more reliable.
6 years, 1 month ago (2014-11-12 17:14:08 UTC) #6
Vyacheslav Egorov (Google)
LGTM! https://codereview.chromium.org/184523002/diff/160001/runtime/vm/flow_graph_inliner.cc File runtime/vm/flow_graph_inliner.cc (right): https://codereview.chromium.org/184523002/diff/160001/runtime/vm/flow_graph_inliner.cc#newcode618 runtime/vm/flow_graph_inliner.cc:618: HasAnnotation(function, "NeverInline")) { Maybe make a Symbol for ...
6 years, 1 month ago (2014-11-13 13:01:42 UTC) #7
Florian Schneider
https://codereview.chromium.org/184523002/diff/160001/runtime/vm/flow_graph_inliner.cc File runtime/vm/flow_graph_inliner.cc (right): https://codereview.chromium.org/184523002/diff/160001/runtime/vm/flow_graph_inliner.cc#newcode618 runtime/vm/flow_graph_inliner.cc:618: HasAnnotation(function, "NeverInline")) { On 2014/11/13 13:01:42, Vyacheslav Egorov (Google) ...
6 years, 1 month ago (2014-11-13 13:38:53 UTC) #8
Florian Schneider
Committed patchset #11 (id:200001) manually as r41713 (presubmit successful).
6 years, 1 month ago (2014-11-13 13:54:20 UTC) #9
Ivan Posva
6 years, 1 month ago (2014-11-21 06:21:10 UTC) #11
Message was sent while issue was closed.
-ivan

https://codereview.chromium.org/184523002/diff/200001/runtime/vm/debugger.cc
File runtime/vm/debugger.cc (right):

https://codereview.chromium.org/184523002/diff/200001/runtime/vm/debugger.cc#...
runtime/vm/debugger.cc:770: Object& value = Instance::Handle();
?

Powered by Google App Engine
This is Rietveld 408576698