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

Issue 266913010: Refactor 'dart:profiler' UserTag API (Closed)

Created:
6 years, 7 months ago by Cutch
Modified:
6 years, 7 months ago
Reviewers:
zra, srdjan, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Refactor 'dart:profiler' UserTag API - Each isolate starts off with a 'Default' UserTag set. - A null tag cannot be set. - Calls to clearCurrentTag() should be replaced with a call to UserTag.defaultTag.makeCurrent(). - makeCurrent returns the previously current tag. This allows for the following pattern to work: callee() { var old = calleeTag.makeCurrent(); ... old.makeCurrent(); } caller() { var old = callerTag.makeCurrent(); ... callee(); assert(getCurrentTag() == callerTag); ... old.makeCurrent(); } R=iposva@google.com, zra@google.com Committed: https://code.google.com/p/dart/source/detail?r=35810

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 15

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -157 lines) Patch
M runtime/lib/profiler.cc View 1 1 chunk +9 lines, -11 lines 0 comments Download
M runtime/lib/profiler.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/bootstrap_natives.h View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/intrinsifier.h View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intrinsifier_arm.cc View 1 2 3 1 chunk +16 lines, -23 lines 0 comments Download
M runtime/vm/intrinsifier_arm64.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intrinsifier_ia32.cc View 1 2 3 1 chunk +14 lines, -24 lines 0 comments Download
M runtime/vm/intrinsifier_mips.cc View 1 2 3 1 chunk +20 lines, -24 lines 0 comments Download
M runtime/vm/intrinsifier_x64.cc View 1 2 3 2 chunks +17 lines, -21 lines 0 comments Download
M runtime/vm/isolate.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/isolate.cc View 1 2 chunks +1 line, -7 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 3 2 chunks +17 lines, -7 lines 0 comments Download
M runtime/vm/object_store.h View 1 2 chunks +14 lines, -0 lines 0 comments Download
M runtime/vm/object_store.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/profiler.h View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/raw_object.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/symbols.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/tags.h View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/profiler/profiler.dart View 1 2 3 1 chunk +18 lines, -19 lines 0 comments Download
M tests/lib/profiler/user_tags_test.dart View 1 2 5 chunks +30 lines, -11 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Cutch
+ zra for ARM/MIPS intrinsic changes.
6 years, 7 months ago (2014-05-06 14:54:59 UTC) #1
zra
arm/mips lgtm https://codereview.chromium.org/266913010/diff/40001/runtime/vm/intrinsifier_arm.cc File runtime/vm/intrinsifier_arm.cc (right): https://codereview.chromium.org/266913010/diff/40001/runtime/vm/intrinsifier_arm.cc#newcode1727 runtime/vm/intrinsifier_arm.cc:1727: __ ldr(R2, Address(R1, Isolate::current_tag_offset())); Could you load ...
6 years, 7 months ago (2014-05-06 15:27:24 UTC) #2
Ivan Posva
LGTM after cleaning up the assembly. -Ivan https://codereview.chromium.org/266913010/diff/40001/runtime/vm/intrinsifier_mips.cc File runtime/vm/intrinsifier_mips.cc (left): https://codereview.chromium.org/266913010/diff/40001/runtime/vm/intrinsifier_mips.cc#oldcode1796 runtime/vm/intrinsifier_mips.cc:1796: __ delay_slot()->LoadImmediate(V0, ...
6 years, 7 months ago (2014-05-06 16:43:06 UTC) #3
Cutch
https://codereview.chromium.org/266913010/diff/40001/runtime/vm/intrinsifier_arm.cc File runtime/vm/intrinsifier_arm.cc (right): https://codereview.chromium.org/266913010/diff/40001/runtime/vm/intrinsifier_arm.cc#newcode1727 runtime/vm/intrinsifier_arm.cc:1727: __ ldr(R2, Address(R1, Isolate::current_tag_offset())); On 2014/05/06 15:27:24, zra wrote: ...
6 years, 7 months ago (2014-05-06 17:00:24 UTC) #4
Cutch
6 years, 7 months ago (2014-05-06 17:07:43 UTC) #5
Message was sent while issue was closed.
Committed patchset #5 manually as r35810 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698