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

Issue 2697193008: [Kernel] replace function debuggable field with originalAsyncMarker field (Closed)

Created:
3 years, 10 months ago by jensj
Modified:
3 years, 10 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[Kernel] replace function debuggable originalAsyncMarker Previously a functions debuggable field was set to false in the async transformation (and because it wasn't done yet, not in async* and sync* transformation, though it should have been). Now instead, set the original async status and set debuggable on the c++ side equivalently. Also, on the c++ side, set a functions modifier to async etc if they were originally async etc. BUG= R=asgerf@google.com, kmillikin@google.com, kustermann@google.com Committed: https://github.com/dart-lang/sdk/commit/86d788e6994bf9e7b8f93d2132cd1099d60229ec

Patch Set 1 #

Total comments: 4

Patch Set 2 : Changes based on feedback (+ small forgotten things) #

Total comments: 14

Patch Set 3 : Changes based on feedback #

Total comments: 2

Patch Set 4 : ASSERT in kernel_reader #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -29 lines) Patch
M pkg/kernel/binary.md View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/kernel/lib/analyzer/ast_from_analyzer.dart View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/kernel/lib/ast.dart View 1 2 2 chunks +16 lines, -2 lines 0 comments Download
M pkg/kernel/lib/binary/ast_from_binary.dart View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/kernel/lib/binary/ast_to_binary.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/kernel/lib/clone.dart View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M pkg/kernel/lib/text/ast_to_text.dart View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M pkg/kernel/lib/transformations/continuation.dart View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M pkg/kernel/lib/transformations/method_call.dart View 1 2 4 chunks +8 lines, -4 lines 0 comments Download
M runtime/vm/kernel.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/kernel_binary.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/kernel_reader.cc View 1 2 3 1 chunk +19 lines, -1 line 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 2 2 chunks +25 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
jensj
3 years, 10 months ago (2017-02-17 13:19:51 UTC) #3
kustermann
LGTM, thanks for splitting it out. (Theoretically we could combine the two bytes into one ...
3 years, 10 months ago (2017-02-17 13:28:08 UTC) #4
asgerf
lgtm https://codereview.chromium.org/2697193008/diff/1/pkg/kernel/lib/ast.dart File pkg/kernel/lib/ast.dart (right): https://codereview.chromium.org/2697193008/diff/1/pkg/kernel/lib/ast.dart#newcode1154 pkg/kernel/lib/ast.dart:1154: AsyncMarker originalAsyncMarker; Could you please add some documentation, ...
3 years, 10 months ago (2017-02-17 13:31:31 UTC) #5
jensj
Comments addressed. Also made a few other changes (e.g. I forgot to update clone.dart) --- ...
3 years, 10 months ago (2017-02-20 09:06:29 UTC) #6
jensj
So I'll hold off on the commit anyway. Kevin asked to be looped in first.
3 years, 10 months ago (2017-02-20 09:30:43 UTC) #8
Kevin Millikin (Google)
Comments below. It seems warty to have both markers on functions. I think it would ...
3 years, 10 months ago (2017-02-22 07:59:59 UTC) #9
jensj
Comments addressed. PTAL. https://codereview.chromium.org/2697193008/diff/20001/pkg/kernel/binary.md File pkg/kernel/binary.md (right): https://codereview.chromium.org/2697193008/diff/20001/pkg/kernel/binary.md#newcode326 pkg/kernel/binary.md:326: AsyncStar On 2017/02/22 07:59:59, Kevin Millikin ...
3 years, 10 months ago (2017-02-22 10:36:45 UTC) #10
Kevin Millikin (Google)
Thanks, LGTM. https://codereview.chromium.org/2697193008/diff/40001/runtime/vm/kernel_reader.cc File runtime/vm/kernel_reader.cc (right): https://codereview.chromium.org/2697193008/diff/40001/runtime/vm/kernel_reader.cc#newcode447 runtime/vm/kernel_reader.cc:447: function.set_is_generated_body(kernel_procedure->function()->async_marker() == This is safe but we ...
3 years, 10 months ago (2017-02-22 10:46:04 UTC) #11
jensj
Thanks. Landing. https://codereview.chromium.org/2697193008/diff/40001/runtime/vm/kernel_reader.cc File runtime/vm/kernel_reader.cc (right): https://codereview.chromium.org/2697193008/diff/40001/runtime/vm/kernel_reader.cc#newcode447 runtime/vm/kernel_reader.cc:447: function.set_is_generated_body(kernel_procedure->function()->async_marker() == On 2017/02/22 10:46:03, Kevin Millikin ...
3 years, 10 months ago (2017-02-22 11:12:36 UTC) #12
jensj
3 years, 10 months ago (2017-02-22 11:13:03 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
86d788e6994bf9e7b8f93d2132cd1099d60229ec (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698