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

Side by Side Diff: runtime/vm/isolate.h

Issue 266913010: Refactor 'dart:profiler' UserTag API (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/isolate.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #ifndef VM_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/thread.h" 10 #include "platform/thread.h"
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 } 485 }
486 static intptr_t current_tag_offset() { 486 static intptr_t current_tag_offset() {
487 return OFFSET_OF(Isolate, current_tag_); 487 return OFFSET_OF(Isolate, current_tag_);
488 } 488 }
489 489
490 RawGrowableObjectArray* tag_table() const { return tag_table_; } 490 RawGrowableObjectArray* tag_table() const { return tag_table_; }
491 void set_tag_table(const GrowableObjectArray& value); 491 void set_tag_table(const GrowableObjectArray& value);
492 492
493 RawUserTag* current_tag() const { return current_tag_; } 493 RawUserTag* current_tag() const { return current_tag_; }
494 void set_current_tag(const UserTag& tag); 494 void set_current_tag(const UserTag& tag);
495 void clear_current_tag();
496 495
497 #if defined(DEBUG) 496 #if defined(DEBUG)
498 #define REUSABLE_HANDLE_SCOPE_ACCESSORS(object) \ 497 #define REUSABLE_HANDLE_SCOPE_ACCESSORS(object) \
499 void set_reusable_##object##_handle_scope_active(bool value) { \ 498 void set_reusable_##object##_handle_scope_active(bool value) { \
500 reusable_##object##_handle_scope_active_ = value; \ 499 reusable_##object##_handle_scope_active_ = value; \
501 } \ 500 } \
502 bool reusable_##object##_handle_scope_active() const { \ 501 bool reusable_##object##_handle_scope_active() const { \
503 return reusable_##object##_handle_scope_active_; \ 502 return reusable_##object##_handle_scope_active_; \
504 } 503 }
505 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_ACCESSORS) 504 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_ACCESSORS)
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 char* script_url_; 719 char* script_url_;
721 char* library_url_; 720 char* library_url_;
722 char* class_name_; 721 char* class_name_;
723 char* function_name_; 722 char* function_name_;
724 char* exception_callback_name_; 723 char* exception_callback_name_;
725 }; 724 };
726 725
727 } // namespace dart 726 } // namespace dart
728 727
729 #endif // VM_ISOLATE_H_ 728 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698