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

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

Issue 182703003: Cleanup native, collected, and stub code handling in profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
809 }; 809 };
810 810
811 811
812 class RawCode : public RawObject { 812 class RawCode : public RawObject {
813 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); 813 RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
814 814
815 RawObject** from() { 815 RawObject** from() {
816 return reinterpret_cast<RawObject**>(&ptr()->instructions_); 816 return reinterpret_cast<RawObject**>(&ptr()->instructions_);
817 } 817 }
818 RawInstructions* instructions_; 818 RawInstructions* instructions_;
819 RawFunction* function_; 819 RawObject* owner_; // Function, Null, or a smi (class id).
820 // If owner_ is Function::null() the owner is a regular stub.
821 // If owner_ is a cid the owner is the allocation stub for the cid.
822 // Else, owner_ is a regular Dart Function.
turnidge 2014/02/28 19:45:43 Can we put the comment above the declaration and g
Cutch 2014/02/28 19:48:08 Done.
820 RawExceptionHandlers* exception_handlers_; 823 RawExceptionHandlers* exception_handlers_;
821 RawPcDescriptors* pc_descriptors_; 824 RawPcDescriptors* pc_descriptors_;
822 RawArray* deopt_info_array_; 825 RawArray* deopt_info_array_;
823 RawArray* object_table_; 826 RawArray* object_table_;
824 RawArray* static_calls_target_table_; // (code-offset, function, code). 827 RawArray* static_calls_target_table_; // (code-offset, function, code).
825 RawArray* stackmaps_; 828 RawArray* stackmaps_;
826 RawLocalVarDescriptors* var_descriptors_; 829 RawLocalVarDescriptors* var_descriptors_;
827 RawArray* comments_; 830 RawArray* comments_;
828 RawObject** to() { 831 RawObject** to() {
829 return reinterpret_cast<RawObject**>(&ptr()->comments_); 832 return reinterpret_cast<RawObject**>(&ptr()->comments_);
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
1768 // Make sure this is updated when new TypedData types are added. 1771 // Make sure this is updated when new TypedData types are added.
1769 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1772 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1770 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1773 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1771 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1774 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1772 return (kNullCid - kTypedDataInt8ArrayCid); 1775 return (kNullCid - kTypedDataInt8ArrayCid);
1773 } 1776 }
1774 1777
1775 } // namespace dart 1778 } // namespace dart
1776 1779
1777 #endif // VM_RAW_OBJECT_H_ 1780 #endif // VM_RAW_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698