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

Issue 24834002: Refactor some deoptimization code. (Closed)

Created:
7 years, 2 months ago by turnidge
Modified:
7 years, 2 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Kevin Millikin (Google), Florian Schneider
Visibility:
Public.

Description

Refactor some deoptimization code. Primarily this change moves deoptimization state/code out of Isolate and into DeoptContext (formerly DeoptimizationContext). The lifetime of DeoptizationContext changes to survive through the entire deoptimization process. Some minor renaming. DeoptizationContext -> DeoptContext to make it consistent with DeoptInstr and to save my wrists. New files deferred_object.{cc,h} contain a bunch of the stuff lifted from isolate.{cc,h}. R=fschneider@google.com, srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=28112

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 11

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+542 lines, -2447 lines) Patch
M runtime/vm/code_generator.cc View 1 2 3 4 5 6 14 chunks +55 lines, -58 lines 0 comments Download
A + runtime/vm/deferred_objects.h View 2 chunks +8 lines, -627 lines 0 comments Download
A + runtime/vm/deferred_objects.cc View 3 chunks +10 lines, -1079 lines 0 comments Download
M runtime/vm/deopt_instructions.h View 1 2 3 4 5 6 7 chunks +139 lines, -47 lines 0 comments Download
M runtime/vm/deopt_instructions.cc View 1 2 3 4 5 6 45 chunks +314 lines, -222 lines 0 comments Download
M runtime/vm/isolate.h View 1 2 3 4 5 6 5 chunks +6 lines, -273 lines 0 comments Download
M runtime/vm/isolate.cc View 1 2 3 4 5 6 7 chunks +8 lines, -141 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
turnidge
Hi Srdjan, These changes make it easier for me to reuse the deoptimization code in ...
7 years, 2 months ago (2013-09-26 21:17:28 UTC) #1
srdjan
lgtm https://codereview.chromium.org/24834002/diff/8001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/24834002/diff/8001/runtime/vm/code_generator.cc#newcode1594 runtime/vm/code_generator.cc:1594: // TODO(turnidge): Why can't I move CopySavedRegisters here? ...
7 years, 2 months ago (2013-09-27 17:04:54 UTC) #2
Florian Schneider
dbc: I find the the diff for the newly added files strange, as it has ...
7 years, 2 months ago (2013-09-30 11:32:28 UTC) #3
turnidge
On 2013/09/30 11:32:28, Florian Schneider wrote: > dbc: > > I find the the diff ...
7 years, 2 months ago (2013-09-30 17:31:36 UTC) #4
turnidge
Florian: Thank you for your comments. Please see my discussion below. Srdjan: I have done ...
7 years, 2 months ago (2013-09-30 17:40:22 UTC) #5
Ivan Posva
https://codereview.chromium.org/24834002/diff/24001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/24834002/diff/24001/runtime/vm/code_generator.cc#newcode1735 runtime/vm/code_generator.cc:1735: delete deopt_context; On 2013/09/30 17:40:22, turnidge wrote: > On ...
7 years, 2 months ago (2013-09-30 18:00:01 UTC) #6
turnidge
Okay. Thanks for all of the comments, everyone. PTAL. I have introduced some api changes ...
7 years, 2 months ago (2013-09-30 19:35:10 UTC) #7
Florian Schneider
Code LGTM. https://codereview.chromium.org/24834002/diff/36001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/24834002/diff/36001/runtime/vm/code_generator.cc#newcode1596 runtime/vm/code_generator.cc:1596: // TODO(turnidge): Why can't I move CopySavedRegisters ...
7 years, 2 months ago (2013-10-01 16:44:26 UTC) #8
turnidge
https://codereview.chromium.org/24834002/diff/36001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/24834002/diff/36001/runtime/vm/code_generator.cc#newcode1596 runtime/vm/code_generator.cc:1596: // TODO(turnidge): Why can't I move CopySavedRegisters here? On ...
7 years, 2 months ago (2013-10-01 16:53:06 UTC) #9
turnidge
7 years, 2 months ago (2013-10-01 19:34:20 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 manually as r28112 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698