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

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: sync 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/parser.cc ('k') | runtime/vm/symbols.h » ('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_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 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 799
800 class RawNamespace : public RawObject { 800 class RawNamespace : public RawObject {
801 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace); 801 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace);
802 802
803 RawObject** from() { 803 RawObject** from() {
804 return reinterpret_cast<RawObject**>(&ptr()->library_); 804 return reinterpret_cast<RawObject**>(&ptr()->library_);
805 } 805 }
806 RawLibrary* library_; // library with name dictionary. 806 RawLibrary* library_; // library with name dictionary.
807 RawArray* show_names_; // list of names that are exported. 807 RawArray* show_names_; // list of names that are exported.
808 RawArray* hide_names_; // blacklist of names that are not exported. 808 RawArray* hide_names_; // blacklist of names that are not exported.
809 RawField* metadata_field_; // remembers the token pos of metadata if any,
810 // and the metadata values if computed.
809 RawObject** to() { 811 RawObject** to() {
810 return reinterpret_cast<RawObject**>(&ptr()->hide_names_); 812 return reinterpret_cast<RawObject**>(&ptr()->metadata_field_);
811 } 813 }
812 }; 814 };
813 815
814 816
815 class RawCode : public RawObject { 817 class RawCode : public RawObject {
816 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); 818 RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
817 819
818 RawObject** from() { 820 RawObject** from() {
819 return reinterpret_cast<RawObject**>(&ptr()->instructions_); 821 return reinterpret_cast<RawObject**>(&ptr()->instructions_);
820 } 822 }
(...skipping 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 // Make sure this is updated when new TypedData types are added. 1773 // Make sure this is updated when new TypedData types are added.
1772 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1774 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1773 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1775 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1774 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1776 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1775 return (kNullCid - kTypedDataInt8ArrayCid); 1777 return (kNullCid - kTypedDataInt8ArrayCid);
1776 } 1778 }
1777 1779
1778 } // namespace dart 1780 } // namespace dart
1779 1781
1780 #endif // VM_RAW_OBJECT_H_ 1782 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698