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

Issue 2632253002: VM: [Kernel] Partial support for metadata annotations (Closed)

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

Description

VM: [Kernel] Partial support for metadata annotations The CL adds metadata support for Fields/Classes/Functions/Constructors. There are other places where annotations can be put in the Dart language but the Kernel IR currently does not store it in the AST. Whenever a element (e.g. a function) gets annotated, the VM will make a [Field] for this element whos value is an array of evaluated constant metadata annotations. This CL attaches to these [Fields] a `kernel_function` which is then used to do the constant evaluation. R=vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/e97bcc547551f1c0922c96351a02f43cc84149fb

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -22 lines) Patch
M pkg/kernel/lib/analyzer/ast_from_analyzer.dart View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/lib/mirrors.cc View 2 chunks +10 lines, -2 lines 0 comments Download
M runtime/vm/kernel_reader.h View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/kernel_reader.cc View 1 5 chunks +16 lines, -1 line 0 comments Download
M runtime/vm/kernel_to_il.h View 1 1 chunk +18 lines, -0 lines 0 comments Download
M runtime/vm/kernel_to_il.cc View 1 4 chunks +118 lines, -3 lines 0 comments Download
M runtime/vm/object.h View 1 3 chunks +11 lines, -4 lines 0 comments Download
M runtime/vm/object.cc View 1 5 chunks +21 lines, -8 lines 0 comments Download
M tests/co19/co19-kernel.status View 1 1 chunk +18 lines, -1 line 0 comments Download
M tests/language/language_kernel.status View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
kustermann
3 years, 11 months ago (2017-01-16 14:40:12 UTC) #2
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/2632253002/diff/1/runtime/vm/kernel_to_il.cc File runtime/vm/kernel_to_il.cc (right): https://codereview.chromium.org/2632253002/diff/1/runtime/vm/kernel_to_il.cc#newcode5897 runtime/vm/kernel_to_il.cc:5897: ConstantEvaluator constant_evaluator(NULL /* flow graph builder */, Z, ...
3 years, 11 months ago (2017-01-17 22:33:06 UTC) #3
kustermann
https://codereview.chromium.org/2632253002/diff/1/runtime/vm/kernel_to_il.cc File runtime/vm/kernel_to_il.cc (right): https://codereview.chromium.org/2632253002/diff/1/runtime/vm/kernel_to_il.cc#newcode5897 runtime/vm/kernel_to_il.cc:5897: ConstantEvaluator constant_evaluator(NULL /* flow graph builder */, Z, On ...
3 years, 11 months ago (2017-01-18 09:34:41 UTC) #4
kustermann
3 years, 11 months ago (2017-01-18 09:51:36 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
e97bcc547551f1c0922c96351a02f43cc84149fb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698