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

Issue 850183005: Introduce simple Thread class to support gradual refactoring of interfaces. (Closed)

Created:
5 years, 11 months ago by koda
Modified:
5 years, 11 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Ivan Posva
Visibility:
Public.

Description

Introduce simple Thread class to support gradual refactoring of interfaces. This first iteration of Thread just forwards a subset of the BaseIsolate methods. The plan is to first add Thread/Zone-based interfaces where appropriate, deprecate their Isolate-based versions, and finally remove them once all callsites have been migrated. This CL only demonstrates a small part of this migration, for BitVector and some of the compiler classes. There are thousands of additional call-sites that will need to be updated. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=43073

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -121 lines) Patch
M runtime/vm/allocation.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/ast_transformer.h View 3 chunks +3 lines, -2 lines 0 comments Download
M runtime/vm/ast_transformer.cc View 1 2 3 4 33 chunks +92 lines, -90 lines 0 comments Download
M runtime/vm/base_isolate.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/bit_vector.h View 1 chunk +8 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph.h View 1 2 3 4 5 chunks +8 lines, -5 lines 0 comments Download
M runtime/vm/flow_graph.cc View 1 2 3 4 17 chunks +21 lines, -22 lines 0 comments Download
M runtime/vm/flow_graph_allocator.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
A runtime/vm/thread.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
koda
5 years, 11 months ago (2015-01-21 21:32:21 UTC) #1
koda
... and next on the list is to move handle allocation interfaces from taking an ...
5 years, 11 months ago (2015-01-21 21:39:43 UTC) #2
Ivan Posva
On 2015/01/21 21:39:43, koda wrote: > ... and next on the list is to move ...
5 years, 11 months ago (2015-01-21 21:53:13 UTC) #3
koda
That was my initial thinking as well, but there is an issue with the "no ...
5 years, 11 months ago (2015-01-21 21:58:52 UTC) #4
siva
https://codereview.chromium.org/850183005/diff/40001/runtime/vm/allocation.h File runtime/vm/allocation.h (right): https://codereview.chromium.org/850183005/diff/40001/runtime/vm/allocation.h#newcode99 runtime/vm/allocation.h:99: void* operator new(uword size, BaseIsolate* isolate); if deprecated would ...
5 years, 11 months ago (2015-01-21 22:14:51 UTC) #5
koda
https://codereview.chromium.org/850183005/diff/40001/runtime/vm/allocation.h File runtime/vm/allocation.h (right): https://codereview.chromium.org/850183005/diff/40001/runtime/vm/allocation.h#newcode99 runtime/vm/allocation.h:99: void* operator new(uword size, BaseIsolate* isolate); On 2015/01/21 22:14:50, ...
5 years, 11 months ago (2015-01-21 23:05:44 UTC) #6
koda
https://codereview.chromium.org/850183005/diff/40001/runtime/vm/thread.h File runtime/vm/thread.h (right): https://codereview.chromium.org/850183005/diff/40001/runtime/vm/thread.h#newcode32 runtime/vm/thread.h:32: } On 2015/01/21 22:14:50, siva wrote: > Missing the ...
5 years, 11 months ago (2015-01-21 23:06:25 UTC) #7
siva
LGTM. Ivan has a comment about Zone::Current which I think is valid, maybe you want ...
5 years, 11 months ago (2015-01-22 01:18:20 UTC) #8
Ivan Posva
-Ivan https://codereview.chromium.org/850183005/diff/40001/runtime/vm/flow_graph.cc File runtime/vm/flow_graph.cc (right): https://codereview.chromium.org/850183005/diff/40001/runtime/vm/flow_graph.cc#newcode431 runtime/vm/flow_graph.cc:431: live_out_.Add(new(zone()) BitVector(zone(), variable_count_)); On 2015/01/22 01:18:20, siva wrote: ...
5 years, 11 months ago (2015-01-22 01:26:45 UTC) #10
koda
https://codereview.chromium.org/850183005/diff/40001/runtime/vm/flow_graph.cc File runtime/vm/flow_graph.cc (right): https://codereview.chromium.org/850183005/diff/40001/runtime/vm/flow_graph.cc#newcode431 runtime/vm/flow_graph.cc:431: live_out_.Add(new(zone()) BitVector(zone(), variable_count_)); On 2015/01/22 01:26:44, Ivan Posva wrote: ...
5 years, 11 months ago (2015-01-22 02:01:00 UTC) #11
koda
5 years, 11 months ago (2015-01-22 14:14:26 UTC) #12
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as r43073 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698