| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:_internal'; |
| 6 |
| 5 @patch class UserTag { | 7 @patch class UserTag { |
| 6 @patch factory UserTag(String label) { | 8 @patch factory UserTag(String label) { |
| 7 return new _UserTag(label); | 9 return new _UserTag(label); |
| 8 } | 10 } |
| 9 @patch static UserTag get defaultTag => _getDefaultTag(); | 11 @patch static UserTag get defaultTag => _getDefaultTag(); |
| 10 } | 12 } |
| 11 | 13 |
| 12 | 14 |
| 13 class _UserTag implements UserTag { | 15 class _UserTag implements UserTag { |
| 14 factory _UserTag(String label) native "UserTag_new"; | 16 factory _UserTag(String label) native "UserTag_new"; |
| 15 String get label native "UserTag_label"; | 17 String get label native "UserTag_label"; |
| 16 UserTag makeCurrent() native "UserTag_makeCurrent"; | 18 UserTag makeCurrent() native "UserTag_makeCurrent"; |
| 17 } | 19 } |
| 18 | 20 |
| 19 @patch UserTag getCurrentTag() => _getCurrentTag(); | 21 @patch UserTag getCurrentTag() => _getCurrentTag(); |
| 20 UserTag _getCurrentTag() native "Profiler_getCurrentTag"; | 22 UserTag _getCurrentTag() native "Profiler_getCurrentTag"; |
| 21 | 23 |
| 22 UserTag _getDefaultTag() native "UserTag_defaultTag"; | 24 UserTag _getDefaultTag() native "UserTag_defaultTag"; |
| OLD | NEW |