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

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

Issue 247713006: Object size on heap map hover. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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
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"
11 #include "vm/base_isolate.h" 11 #include "vm/base_isolate.h"
12 #include "vm/class_table.h" 12 #include "vm/class_table.h"
13 #include "vm/counters.h"
13 #include "vm/handles.h" 14 #include "vm/handles.h"
14 #include "vm/megamorphic_cache_table.h" 15 #include "vm/megamorphic_cache_table.h"
15 #include "vm/random.h" 16 #include "vm/random.h"
16 #include "vm/store_buffer.h" 17 #include "vm/store_buffer.h"
17 #include "vm/tags.h" 18 #include "vm/tags.h"
18 #include "vm/timer.h" 19 #include "vm/timer.h"
19 20
20 namespace dart { 21 namespace dart {
21 22
22 // Forward declarations. 23 // Forward declarations.
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 return OFFSET_OF(Isolate, current_tag_); 486 return OFFSET_OF(Isolate, current_tag_);
486 } 487 }
487 488
488 RawGrowableObjectArray* tag_table() const { return tag_table_; } 489 RawGrowableObjectArray* tag_table() const { return tag_table_; }
489 void set_tag_table(const GrowableObjectArray& value); 490 void set_tag_table(const GrowableObjectArray& value);
490 491
491 RawUserTag* current_tag() const { return current_tag_; } 492 RawUserTag* current_tag() const { return current_tag_; }
492 void set_current_tag(const UserTag& tag); 493 void set_current_tag(const UserTag& tag);
493 void clear_current_tag(); 494 void clear_current_tag();
494 495
496 Counters* counters() { return &counters_; }
497
495 #if defined(DEBUG) 498 #if defined(DEBUG)
496 #define REUSABLE_HANDLE_SCOPE_ACCESSORS(object) \ 499 #define REUSABLE_HANDLE_SCOPE_ACCESSORS(object) \
497 void set_reusable_##object##_handle_scope_active(bool value) { \ 500 void set_reusable_##object##_handle_scope_active(bool value) { \
498 reusable_##object##_handle_scope_active_ = value; \ 501 reusable_##object##_handle_scope_active_ = value; \
499 } \ 502 } \
500 bool reusable_##object##_handle_scope_active() const { \ 503 bool reusable_##object##_handle_scope_active() const { \
501 return reusable_##object##_handle_scope_active_; \ 504 return reusable_##object##_handle_scope_active_; \
502 } 505 }
503 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_ACCESSORS) 506 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_SCOPE_ACCESSORS)
504 #undef REUSABLE_HANDLE_SCOPE_ACCESSORS 507 #undef REUSABLE_HANDLE_SCOPE_ACCESSORS
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 580
578 IsolateProfilerData* profiler_data_; 581 IsolateProfilerData* profiler_data_;
579 Mutex profiler_data_mutex_; 582 Mutex profiler_data_mutex_;
580 InterruptableThreadState* thread_state_; 583 InterruptableThreadState* thread_state_;
581 584
582 VMTagCounters vm_tag_counters_; 585 VMTagCounters vm_tag_counters_;
583 uword user_tag_; 586 uword user_tag_;
584 RawGrowableObjectArray* tag_table_; 587 RawGrowableObjectArray* tag_table_;
585 RawUserTag* current_tag_; 588 RawUserTag* current_tag_;
586 589
590 Counters counters_;
591
587 // Isolate list next pointer. 592 // Isolate list next pointer.
588 Isolate* next_; 593 Isolate* next_;
589 594
590 // Reusable handles support. 595 // Reusable handles support.
591 #define REUSABLE_HANDLE_FIELDS(object) \ 596 #define REUSABLE_HANDLE_FIELDS(object) \
592 object* object##_handle_; 597 object* object##_handle_;
593 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_FIELDS) 598 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_FIELDS)
594 #undef REUSABLE_HANDLE_FIELDS 599 #undef REUSABLE_HANDLE_FIELDS
595 600
596 #if defined(DEBUG) 601 #if defined(DEBUG)
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 char* script_url_; 723 char* script_url_;
719 char* library_url_; 724 char* library_url_;
720 char* class_name_; 725 char* class_name_;
721 char* function_name_; 726 char* function_name_;
722 char* exception_callback_name_; 727 char* exception_callback_name_;
723 }; 728 };
724 729
725 } // namespace dart 730 } // namespace dart
726 731
727 #endif // VM_ISOLATE_H_ 732 #endif // VM_ISOLATE_H_
OLDNEW
« runtime/vm/heap.cc ('K') | « runtime/vm/heap.cc ('k') | runtime/vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698