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

Issue 2944433003: [kernel] Add TokenPosition to AllocateObject, fix some cc tests (Closed)

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

Description

[kernel] Add TokenPosition to AllocateObject, fix some cc tests - Add TokenPosition to AllocateObject meaning that kernel more often has a TokenPosition available. This might influence profiling, especially it influences some of the vm/cc/Profiler* tests. - Update profiler_service to also be able to find the current token via kernel (as opposed to either returning NULL or crashing). This makes use of the source code included in the kernel file. BUG= R=kmillikin@google.com, vegorov@google.com Committed: https://github.com/dart-lang/sdk/commit/4b9f8eb4601c7214993415c879c61fb965179305

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -32 lines) Patch
M runtime/tests/vm/vm.status View 3 chunks +0 lines, -9 lines 0 comments Download
M runtime/vm/kernel_binary_flowgraph.h View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/kernel_binary_flowgraph.cc View 5 chunks +9 lines, -8 lines 3 comments Download
M runtime/vm/kernel_to_il.h View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/kernel_to_il.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M runtime/vm/profiler_service.cc View 2 chunks +23 lines, -10 lines 3 comments Download

Messages

Total messages: 10 (4 generated)
jensj
3 years, 6 months ago (2017-06-16 08:33:05 UTC) #2
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/2944433003/diff/1/runtime/vm/kernel_binary_flowgraph.cc File runtime/vm/kernel_binary_flowgraph.cc (right): https://codereview.chromium.org/2944433003/diff/1/runtime/vm/kernel_binary_flowgraph.cc#newcode6242 runtime/vm/kernel_binary_flowgraph.cc:6242: body_fragment += AllocateObject(TokenPosition::kNoSource, klass, 0); I guess this ...
3 years, 6 months ago (2017-06-16 11:09:18 UTC) #3
jensj
Thanks! I have attempted to update the description. https://codereview.chromium.org/2944433003/diff/1/runtime/vm/kernel_binary_flowgraph.cc File runtime/vm/kernel_binary_flowgraph.cc (right): https://codereview.chromium.org/2944433003/diff/1/runtime/vm/kernel_binary_flowgraph.cc#newcode6242 runtime/vm/kernel_binary_flowgraph.cc:6242: body_fragment ...
3 years, 6 months ago (2017-06-16 11:39:07 UTC) #6
jensj
https://codereview.chromium.org/2944433003/diff/1/runtime/vm/kernel_binary_flowgraph.cc File runtime/vm/kernel_binary_flowgraph.cc (right): https://codereview.chromium.org/2944433003/diff/1/runtime/vm/kernel_binary_flowgraph.cc#newcode6242 runtime/vm/kernel_binary_flowgraph.cc:6242: body_fragment += AllocateObject(TokenPosition::kNoSource, klass, 0); On 2017/06/16 11:39:07, jensj ...
3 years, 6 months ago (2017-06-16 11:55:33 UTC) #7
Kevin Millikin (Google)
LGTM. https://codereview.chromium.org/2944433003/diff/1/runtime/vm/profiler_service.cc File runtime/vm/profiler_service.cc (right): https://codereview.chromium.org/2944433003/diff/1/runtime/vm/profiler_service.cc#newcode2695 runtime/vm/profiler_service.cc:2695: if (script.kind() == RawScript::kKernelTag) { I would probably ...
3 years, 6 months ago (2017-06-21 06:50:43 UTC) #8
jensj
3 years, 6 months ago (2017-06-21 07:41:22 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
4b9f8eb4601c7214993415c879c61fb965179305 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698