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

Issue 1390153004: Move deopt_id and related helpers/definitions from Isolate to Thread (Closed)

Created:
5 years, 2 months ago by srdjan
Modified:
5 years, 2 months ago
Reviewers:
zra, Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Move deopt_id and related helpers/definitions from Isolate to Thread BUG= R=zra@google.com Committed: https://github.com/dart-lang/sdk/commit/6f5335061106766c7acc0dd01a1ce4d15f58b934

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -219 lines) Patch
M runtime/vm/code_descriptors.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/code_generator.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/compiler.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/compiler.cc View 12 chunks +13 lines, -13 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/deferred_objects.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/deopt_instructions.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_builder.h View 4 chunks +4 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 5 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/flow_graph_compiler.h View 2 chunks +2 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 7 chunks +9 lines, -10 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm64.cc View 7 chunks +9 lines, -9 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 7 chunks +9 lines, -9 lines 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 7 chunks +9 lines, -9 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 7 chunks +9 lines, -9 lines 0 comments Download
M runtime/vm/flow_graph_inliner.cc View 6 chunks +7 lines, -7 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 17 chunks +22 lines, -22 lines 0 comments Download
M runtime/vm/flow_graph_range_analysis.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/il_printer.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M runtime/vm/intermediate_language.h View 29 chunks +29 lines, -29 lines 2 comments Download
M runtime/vm/intermediate_language.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intrinsifier.cc View 23 chunks +27 lines, -27 lines 0 comments Download
M runtime/vm/isolate.h View 4 chunks +4 lines, -34 lines 0 comments Download
M runtime/vm/isolate.cc View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/object.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/regexp_assembler_ir.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/thread.h View 2 chunks +30 lines, -0 lines 0 comments Download
M runtime/vm/thread.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
srdjan
5 years, 2 months ago (2015-10-12 22:44:48 UTC) #2
srdjan
On 2015/10/12 22:44:48, srdjan wrote: The reason for this change: With background compilation, one isolate ...
5 years, 2 months ago (2015-10-12 23:10:33 UTC) #3
zra
lgtm
5 years, 2 months ago (2015-10-13 06:49:37 UTC) #4
Florian Schneider
https://codereview.chromium.org/1390153004/diff/1/runtime/vm/intermediate_language.h File runtime/vm/intermediate_language.h (right): https://codereview.chromium.org/1390153004/diff/1/runtime/vm/intermediate_language.h#newcode602 runtime/vm/intermediate_language.h:602: Wouldn't it make sense to make kNoDeoptId top-level here ...
5 years, 2 months ago (2015-10-13 09:35:27 UTC) #6
srdjan
Committed patchset #1 (id:1) manually as 6f5335061106766c7acc0dd01a1ce4d15f58b934 (presubmit successful).
5 years, 2 months ago (2015-10-13 17:08:26 UTC) #7
srdjan
5 years, 2 months ago (2015-10-13 19:23:15 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1390153004/diff/1/runtime/vm/intermediate_lan...
File runtime/vm/intermediate_language.h (right):

https://codereview.chromium.org/1390153004/diff/1/runtime/vm/intermediate_lan...
runtime/vm/intermediate_language.h:602: 
On 2015/10/13 09:35:27, Florian Schneider wrote:
> Wouldn't it make sense to make kNoDeoptId top-level here in this file? It's
> tedious to write Thread::kNoDeoptId, plus it is strange to depend on including
> thread.h for this constant - intermediate_language.h seems like a better
place.
> 
> enum {
>   kNoDeoptId = -1;
> };

Good point. Note that Thread::kNoDeoptId is shorter than Isolate::kNoDeoptId
;-). 
Talked about it with others in MTV, and the only consensus is that we need to
make it better, and that making it a global is not the best solution.
Other possibilities: In the thread, store a compiler state instead of CHA,
deopt_id, .... and move the deopt_id handling there.

Leaving it as it is for now.

Powered by Google App Engine
This is Rietveld 408576698