mirror of
https://github.com/dart-lang/sdk
synced 2024-09-20 04:31:31 +00:00
b28c4664c0
This reverts commit 60a2cfa219
.
Change-Id: I6d83653c72d5e8576952a631d23be5be5d9c71f6
Reviewed-on: https://dart-review.googlesource.com/46384
Reviewed-by: Ben Konyi <bkonyi@google.com>
Reviewed-by: Zach Anderson <zra@google.com>
Commit-Queue: Ben Konyi <bkonyi@google.com>
28 lines
770 B
Dart
28 lines
770 B
Dart
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// part of "developer.dart";
|
|
|
|
@patch
|
|
class UserTag {
|
|
@patch
|
|
factory UserTag(String label) {
|
|
return new _UserTag(label);
|
|
}
|
|
@patch
|
|
static UserTag get defaultTag => _getDefaultTag();
|
|
}
|
|
|
|
class _UserTag implements UserTag {
|
|
factory _UserTag(String label) native "UserTag_new";
|
|
String get label native "UserTag_label";
|
|
UserTag makeCurrent() native "UserTag_makeCurrent";
|
|
}
|
|
|
|
@patch
|
|
UserTag getCurrentTag() => _getCurrentTag();
|
|
UserTag _getCurrentTag() native "Profiler_getCurrentTag";
|
|
|
|
UserTag _getDefaultTag() native "UserTag_defaultTag";
|