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

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

Issue 19512003: Implement VariableMirror creation with non-API code. To break circular initialization, have them fi… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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_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 5858 matching lines...) Expand 10 before | Expand all | Expand 10 after
5869 class MirrorReference : public Instance { 5869 class MirrorReference : public Instance {
5870 public: 5870 public:
5871 RawObject* referent() const { 5871 RawObject* referent() const {
5872 return raw_ptr()->referent_; 5872 return raw_ptr()->referent_;
5873 } 5873 }
5874 5874
5875 void set_referent(const Object& referent) const { 5875 void set_referent(const Object& referent) const {
5876 StorePointer(&raw_ptr()->referent_, referent.raw()); 5876 StorePointer(&raw_ptr()->referent_, referent.raw());
5877 } 5877 }
5878 5878
5879 RawField* GetFieldReferent() const;
5879 RawFunction* GetFunctionReferent() const; 5880 RawFunction* GetFunctionReferent() const;
5880 5881
5881 static RawMirrorReference* New(Heap::Space space = Heap::kNew); 5882 static RawMirrorReference* New(Heap::Space space = Heap::kNew);
5882 5883
5883 static intptr_t InstanceSize() { 5884 static intptr_t InstanceSize() {
5884 return RoundedAllocationSize(sizeof(RawMirrorReference)); 5885 return RoundedAllocationSize(sizeof(RawMirrorReference));
5885 } 5886 }
5886 5887
5887 private: 5888 private:
5888 FINAL_HEAP_OBJECT_IMPLEMENTATION(MirrorReference, Instance); 5889 FINAL_HEAP_OBJECT_IMPLEMENTATION(MirrorReference, Instance);
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
6009 6010
6010 6011
6011 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6012 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6012 intptr_t index) { 6013 intptr_t index) {
6013 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6014 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6014 } 6015 }
6015 6016
6016 } // namespace dart 6017 } // namespace dart
6017 6018
6018 #endif // VM_OBJECT_H_ 6019 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698