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

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

Issue 154733003: Access to imports in the VM's runtime mirrors. Extend test coverage of the source mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 816
817 class RawNamespace : public RawObject { 817 class RawNamespace : public RawObject {
818 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace); 818 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace);
819 819
820 RawObject** from() { 820 RawObject** from() {
821 return reinterpret_cast<RawObject**>(&ptr()->library_); 821 return reinterpret_cast<RawObject**>(&ptr()->library_);
822 } 822 }
823 RawLibrary* library_; // library with name dictionary. 823 RawLibrary* library_; // library with name dictionary.
824 RawArray* show_names_; // list of names that are exported. 824 RawArray* show_names_; // list of names that are exported.
825 RawArray* hide_names_; // blacklist of names that are not exported. 825 RawArray* hide_names_; // blacklist of names that are not exported.
826 RawField* metadata_field_; // remembers the token pos of metadata if any,
827 // and the metadata values if computed.
826 RawObject** to() { 828 RawObject** to() {
827 return reinterpret_cast<RawObject**>(&ptr()->hide_names_); 829 return reinterpret_cast<RawObject**>(&ptr()->metadata_field_);
828 } 830 }
829 }; 831 };
830 832
831 833
832 class RawCode : public RawObject { 834 class RawCode : public RawObject {
833 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); 835 RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
834 836
835 RawObject** from() { 837 RawObject** from() {
836 return reinterpret_cast<RawObject**>(&ptr()->instructions_); 838 return reinterpret_cast<RawObject**>(&ptr()->instructions_);
837 } 839 }
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1787 // Make sure this is updated when new TypedData types are added. 1789 // Make sure this is updated when new TypedData types are added.
1788 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1790 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1789 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1791 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1790 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1792 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1791 return (kNullCid - kTypedDataInt8ArrayCid); 1793 return (kNullCid - kTypedDataInt8ArrayCid);
1792 } 1794 }
1793 1795
1794 } // namespace dart 1796 } // namespace dart
1795 1797
1796 #endif // VM_RAW_OBJECT_H_ 1798 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.h » ('j') | sdk/lib/mirrors/mirrors.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698