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

Side by Side Diff: runtime/lib/profiler.cc

Issue 583583007: 1. Add user tag to the pointers traversed in the object store (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intrinsifier_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698