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

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

Issue 164183003: Add expandable instances and lists to the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: gen js Created 6 years, 10 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/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 2170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2181 // Constructs getter and setter names for fields and vice versa. 2181 // Constructs getter and setter names for fields and vice versa.
2182 static RawString* GetterName(const String& field_name); 2182 static RawString* GetterName(const String& field_name);
2183 static RawString* GetterSymbol(const String& field_name); 2183 static RawString* GetterSymbol(const String& field_name);
2184 static RawString* SetterName(const String& field_name); 2184 static RawString* SetterName(const String& field_name);
2185 static RawString* SetterSymbol(const String& field_name); 2185 static RawString* SetterSymbol(const String& field_name);
2186 static RawString* NameFromGetter(const String& getter_name); 2186 static RawString* NameFromGetter(const String& getter_name);
2187 static RawString* NameFromSetter(const String& setter_name); 2187 static RawString* NameFromSetter(const String& setter_name);
2188 static bool IsGetterName(const String& function_name); 2188 static bool IsGetterName(const String& function_name);
2189 static bool IsSetterName(const String& function_name); 2189 static bool IsSetterName(const String& function_name);
2190 2190
2191 // When we print a field to a JSON stream, we want to make it appear
2192 // that the value is a property of the field, so we allow the actual
2193 // instance to be supplied here.
2194 virtual void PrintToJSONStreamWithInstance(
2195 JSONStream* stream, const Instance& instance, bool ref) const;
2196
2197 private: 2191 private:
2198 friend class StoreInstanceFieldInstr; // Generated code access to bit field. 2192 friend class StoreInstanceFieldInstr; // Generated code access to bit field.
2199 2193
2200 enum { 2194 enum {
2201 kConstBit = 0, 2195 kConstBit = 0,
2202 kStaticBit, 2196 kStaticBit,
2203 kFinalBit, 2197 kFinalBit,
2204 kHasInitializerBit, 2198 kHasInitializerBit,
2205 kUnboxingCandidateBit 2199 kUnboxingCandidateBit
2206 }; 2200 };
(...skipping 4411 matching lines...) Expand 10 before | Expand all | Expand 10 after
6618 6612
6619 6613
6620 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6614 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6621 intptr_t index) { 6615 intptr_t index) {
6622 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6616 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6623 } 6617 }
6624 6618
6625 } // namespace dart 6619 } // namespace dart
6626 6620
6627 #endif // VM_OBJECT_H_ 6621 #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