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

Issue 2000323006: Make CompilerTask independent of compiler. (Closed)

Created:
4 years, 7 months ago by Siggi Cherem (dart-lang)
Modified:
4 years, 7 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make CompilerTask independent of compiler. Now this base class only has logic for measuring time. R=het@google.com, johnniwinther@google.com Committed: https://github.com/dart-lang/sdk/commit/b741e3f0df61662984e836c17bafe143c0b90c71

Patch Set 1 : #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -197 lines) Patch
M pkg/compiler/lib/src/apiimpl.dart View 3 chunks +9 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/closure.dart View 1 chunk +5 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/common/tasks.dart View 8 chunks +63 lines, -84 lines 10 comments Download
M pkg/compiler/lib/src/compile_time_constants.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/compiler.dart View 6 chunks +6 lines, -14 lines 3 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart View 3 chunks +4 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/dart_backend/backend.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/deferred_load.dart View 3 chunks +7 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/dump_info.dart View 2 chunks +5 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/enqueue.dart View 7 chunks +26 lines, -15 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend_helpers.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/task.dart View 1 chunk +5 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/constant_handler_javascript.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/patch_resolver.dart View 1 chunk +6 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/code_emitter_task.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/library_loader.dart View 6 chunks +11 lines, -8 lines 0 comments Download
M pkg/compiler/lib/src/mirrors_used.dart View 2 chunks +6 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/parser/diet_parser_task.dart View 2 chunks +4 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/parser/parser_task.dart View 2 chunks +5 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/patch_parser.dart View 1 chunk +5 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/resolution/resolution.dart View 1 chunk +6 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/resolution/resolution_common.dart View 2 chunks +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/scanner/scanner_task.dart View 2 chunks +5 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/serialization/task.dart View 1 chunk +4 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 chunk +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/codegen.dart View 1 chunk +3 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/optimize.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/typechecker.dart View 1 chunk +6 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/types/types.dart View 17 chunks +19 lines, -17 lines 0 comments Download
M pkg/dart2js_incremental/lib/caching_compiler.dart View 1 chunk +1 line, -5 lines 0 comments Download
M site/try/poi/poi.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/exit_code_test.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/patch_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/type_checker_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (6 generated)
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/common/tasks.dart File pkg/compiler/lib/src/common/tasks.dart (left): https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/common/tasks.dart#oldcode16 pkg/compiler/lib/src/common/tasks.dart:16: class DeferredTask { this is unrelated to the other ...
4 years, 7 months ago (2016-05-25 01:45:18 UTC) #6
Johnni Winther
lgtm https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/common/tasks.dart File pkg/compiler/lib/src/common/tasks.dart (left): https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/common/tasks.dart#oldcode16 pkg/compiler/lib/src/common/tasks.dart:16: class DeferredTask { On 2016/05/25 01:45:17, Siggi Cherem ...
4 years, 7 months ago (2016-05-25 09:02:00 UTC) #7
Harry Terkelsen
lgtm https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/common/tasks.dart File pkg/compiler/lib/src/common/tasks.dart (right): https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/common/tasks.dart#newcode12 pkg/compiler/lib/src/common/tasks.dart:12: /// This exposes [measure] and [measureIo], which wrap ...
4 years, 7 months ago (2016-05-25 15:51:36 UTC) #8
Siggi Cherem (dart-lang)
Committed patchset #1 (id:80001) manually as b741e3f0df61662984e836c17bafe143c0b90c71 (presubmit successful).
4 years, 7 months ago (2016-05-25 16:11:15 UTC) #10
Siggi Cherem (dart-lang)
4 years, 7 months ago (2016-05-25 16:11:18 UTC) #11
Message was sent while issue was closed.
thanks

https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/co...
File pkg/compiler/lib/src/common/tasks.dart (right):

https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/co...
pkg/compiler/lib/src/common/tasks.dart:12: /// This exposes [measure] and
[measureIo], which wrap an action and assotiate
On 2016/05/25 15:51:36, Harry Terkelsen wrote:
> assotiate -> associate

Done.

https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/co...
pkg/compiler/lib/src/common/tasks.dart:13: /// the time spend during that action
with this task. Nested measurements can be
On 2016/05/25 15:51:36, Harry Terkelsen wrote:
> spend -> spent

Done.

https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/co...
pkg/compiler/lib/src/common/tasks.dart:32: // Note: it would be sufficient to
mark this getter abstract if we had enough
On 2016/05/25 15:51:36, Harry Terkelsen wrote:
> this note seems more like a TODO

Yeah, not sure if it's worth deleting. Rephrase the comment to encourage to
override this, but kept the current implementation for now.

https://codereview.chromium.org/2000323006/diff/80001/pkg/compiler/lib/src/co...
pkg/compiler/lib/src/common/tasks.dart:56: /// Perform [action] and use [_watch]
to measure its runtime (including any
On 2016/05/25 15:51:36, Harry Terkelsen wrote:
> maybe remove the part about _watch in the docs since it's an implementation
> detail. Just "perform action and measure..."

good point, done.

Powered by Google App Engine
This is Rietveld 408576698