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 #include "vm/bootstrap_natives.h" | 5 #include "vm/bootstrap_natives.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 | 8 |
9 #include "vm/exceptions.h" | 9 #include "vm/exceptions.h" |
10 #include "vm/native_entry.h" | 10 #include "vm/native_entry.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 const UserTag& old = UserTag::Handle(isolate->current_tag()); | 38 const UserTag& old = UserTag::Handle(isolate->current_tag()); |
39 self.MakeActive(); | 39 self.MakeActive(); |
40 return old.raw(); | 40 return old.raw(); |
41 } | 41 } |
42 | 42 |
43 | 43 |
44 DEFINE_NATIVE_ENTRY(UserTag_defaultTag, 0) { | 44 DEFINE_NATIVE_ENTRY(UserTag_defaultTag, 0) { |
45 if (FLAG_trace_intrinsified_natives) { | 45 if (FLAG_trace_intrinsified_natives) { |
46 OS::Print("UserTag_defaultTag\n"); | 46 OS::Print("UserTag_defaultTag\n"); |
47 } | 47 } |
48 return isolate->object_store()->default_tag(); | 48 return isolate->default_tag(); |
49 } | 49 } |
50 | 50 |
51 | 51 |
52 DEFINE_NATIVE_ENTRY(Profiler_getCurrentTag, 0) { | 52 DEFINE_NATIVE_ENTRY(Profiler_getCurrentTag, 0) { |
53 if (FLAG_trace_intrinsified_natives) { | 53 if (FLAG_trace_intrinsified_natives) { |
54 OS::Print("Profiler_getCurrentTag\n"); | 54 OS::Print("Profiler_getCurrentTag\n"); |
55 } | 55 } |
56 return isolate->current_tag(); | 56 return isolate->current_tag(); |
57 } | 57 } |
58 | 58 |
59 | 59 |
60 } // namespace dart | 60 } // namespace dart |
OLD | NEW |