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

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

Issue 110703002: Add an instance view page to the vmservice. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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/json_stream.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 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 // Constructs getter and setter names for fields and vice versa. 2187 // Constructs getter and setter names for fields and vice versa.
2188 static RawString* GetterName(const String& field_name); 2188 static RawString* GetterName(const String& field_name);
2189 static RawString* GetterSymbol(const String& field_name); 2189 static RawString* GetterSymbol(const String& field_name);
2190 static RawString* SetterName(const String& field_name); 2190 static RawString* SetterName(const String& field_name);
2191 static RawString* SetterSymbol(const String& field_name); 2191 static RawString* SetterSymbol(const String& field_name);
2192 static RawString* NameFromGetter(const String& getter_name); 2192 static RawString* NameFromGetter(const String& getter_name);
2193 static RawString* NameFromSetter(const String& setter_name); 2193 static RawString* NameFromSetter(const String& setter_name);
2194 static bool IsGetterName(const String& function_name); 2194 static bool IsGetterName(const String& function_name);
2195 static bool IsSetterName(const String& function_name); 2195 static bool IsSetterName(const String& function_name);
2196 2196
2197 // When we print a field to a JSON stream, we want to make it appear
2198 // that the value is a property of the field, so we allow the actual
2199 // instance to be supplied here.
2200 virtual void PrintToJSONStreamWithInstance(
2201 JSONStream* stream, const Instance& instance, bool ref) const;
2202
2197 private: 2203 private:
2198 enum { 2204 enum {
2199 kConstBit = 1, 2205 kConstBit = 1,
2200 kStaticBit, 2206 kStaticBit,
2201 kFinalBit, 2207 kFinalBit,
2202 kHasInitializerBit, 2208 kHasInitializerBit,
2203 }; 2209 };
2204 class ConstBit : public BitField<bool, kConstBit, 1> {}; 2210 class ConstBit : public BitField<bool, kConstBit, 1> {};
2205 class StaticBit : public BitField<bool, kStaticBit, 1> {}; 2211 class StaticBit : public BitField<bool, kStaticBit, 1> {};
2206 class FinalBit : public BitField<bool, kFinalBit, 1> {}; 2212 class FinalBit : public BitField<bool, kFinalBit, 1> {};
(...skipping 4240 matching lines...) Expand 10 before | Expand all | Expand 10 after
6447 6453
6448 6454
6449 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6455 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6450 intptr_t index) { 6456 intptr_t index) {
6451 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6457 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6452 } 6458 }
6453 6459
6454 } // namespace dart 6460 } // namespace dart
6455 6461
6456 #endif // VM_OBJECT_H_ 6462 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698