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

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

Issue 251043003: Observatory Display PC descriptors with disassembling (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/native_entry.cc ('k') | runtime/vm/object.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) 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_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_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/utils.h" 10 #include "platform/utils.h"
(...skipping 2946 matching lines...) Expand 10 before | Expand all | Expand 10 after
2957 static RawPcDescriptors* New(intptr_t num_descriptors); 2957 static RawPcDescriptors* New(intptr_t num_descriptors);
2958 2958
2959 // Returns 0 if not found. 2959 // Returns 0 if not found.
2960 uword GetPcForKind(Kind kind) const; 2960 uword GetPcForKind(Kind kind) const;
2961 2961
2962 // Verify (assert) assumptions about pc descriptors in debug mode. 2962 // Verify (assert) assumptions about pc descriptors in debug mode.
2963 void Verify(const Function& function) const; 2963 void Verify(const Function& function) const;
2964 2964
2965 static void PrintHeaderString(); 2965 static void PrintHeaderString();
2966 2966
2967 void PrintToJSONObject(JSONObject* jsobj) const;
2968
2967 // We would have a VisitPointers function here to traverse the 2969 // We would have a VisitPointers function here to traverse the
2968 // pc descriptors table to visit objects if any in the table. 2970 // pc descriptors table to visit objects if any in the table.
2969 2971
2970 private: 2972 private:
2971 void SetPC(intptr_t index, uword value) const; 2973 void SetPC(intptr_t index, uword value) const;
2972 void SetKind(intptr_t index, PcDescriptors::Kind kind) const; 2974 void SetKind(intptr_t index, PcDescriptors::Kind kind) const;
2973 void SetDeoptId(intptr_t index, intptr_t value) const; 2975 void SetDeoptId(intptr_t index, intptr_t value) const;
2974 void SetTokenPos(intptr_t index, intptr_t value) const; 2976 void SetTokenPos(intptr_t index, intptr_t value) const;
2975 void SetTryIndex(intptr_t index, intptr_t value) const; 2977 void SetTryIndex(intptr_t index, intptr_t value) const;
2976 2978
(...skipping 3993 matching lines...) Expand 10 before | Expand all | Expand 10 after
6970 6972
6971 6973
6972 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6974 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6973 intptr_t index) { 6975 intptr_t index) {
6974 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6976 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6975 } 6977 }
6976 6978
6977 } // namespace dart 6979 } // namespace dart
6978 6980
6979 #endif // VM_OBJECT_H_ 6981 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/native_entry.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698