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

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

Issue 1152753005: Service cleanups... (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update docs. Tweak TypeRef and BoundedType. Created 5 years, 6 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
« no previous file with comments | « runtime/observatory/tests/service/get_object_rpc_test.dart ('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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
692 #undef STORE_NON_POINTER_ILLEGAL_TYPE 692 #undef STORE_NON_POINTER_ILLEGAL_TYPE
693 693
694 // Allocate an object and copy the body of 'orig'. 694 // Allocate an object and copy the body of 'orig'.
695 static RawObject* Clone(const Object& orig, Heap::Space space); 695 static RawObject* Clone(const Object& orig, Heap::Space space);
696 696
697 // End of field mutator guards. 697 // End of field mutator guards.
698 698
699 RawObject* raw_; // The raw object reference. 699 RawObject* raw_; // The raw object reference.
700 700
701 protected: 701 protected:
702 void AddCommonObjectProperties(JSONObject* jsobj,
703 const char* protocol_type,
704 bool ref) const;
705
702 virtual void PrintJSONImpl(JSONStream* stream, bool ref) const; 706 virtual void PrintJSONImpl(JSONStream* stream, bool ref) const;
703 707
704 private: 708 private:
705 static intptr_t NextFieldOffset() { 709 static intptr_t NextFieldOffset() {
706 // Indicates this class cannot be extended by dart code. 710 // Indicates this class cannot be extended by dart code.
707 return -kWordSize; 711 return -kWordSize;
708 } 712 }
709 713
710 static void InitializeObject(uword address, intptr_t id, intptr_t size); 714 static void InitializeObject(uword address, intptr_t id, intptr_t size);
711 715
(...skipping 7132 matching lines...) Expand 10 before | Expand all | Expand 10 after
7844 7848
7845 7849
7846 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7850 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7847 intptr_t index) { 7851 intptr_t index) {
7848 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7852 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7849 } 7853 }
7850 7854
7851 } // namespace dart 7855 } // namespace dart
7852 7856
7853 #endif // VM_OBJECT_H_ 7857 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/observatory/tests/service/get_object_rpc_test.dart ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698