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

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

Issue 189293002: Revert "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, 9 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 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 796
797 class RawNamespace : public RawObject { 797 class RawNamespace : public RawObject {
798 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace); 798 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace);
799 799
800 RawObject** from() { 800 RawObject** from() {
801 return reinterpret_cast<RawObject**>(&ptr()->library_); 801 return reinterpret_cast<RawObject**>(&ptr()->library_);
802 } 802 }
803 RawLibrary* library_; // library with name dictionary. 803 RawLibrary* library_; // library with name dictionary.
804 RawArray* show_names_; // list of names that are exported. 804 RawArray* show_names_; // list of names that are exported.
805 RawArray* hide_names_; // blacklist of names that are not exported. 805 RawArray* hide_names_; // blacklist of names that are not exported.
806 RawField* metadata_field_; // remembers the token pos of metadata if any,
807 // and the metadata values if computed.
808 RawObject** to() { 806 RawObject** to() {
809 return reinterpret_cast<RawObject**>(&ptr()->metadata_field_); 807 return reinterpret_cast<RawObject**>(&ptr()->hide_names_);
810 } 808 }
811 }; 809 };
812 810
813 811
814 class RawCode : public RawObject { 812 class RawCode : public RawObject {
815 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); 813 RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
816 814
817 RawObject** from() { 815 RawObject** from() {
818 return reinterpret_cast<RawObject**>(&ptr()->instructions_); 816 return reinterpret_cast<RawObject**>(&ptr()->instructions_);
819 } 817 }
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 // Make sure this is updated when new TypedData types are added. 1773 // Make sure this is updated when new TypedData types are added.
1776 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1774 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1777 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1775 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1778 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1776 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1779 return (kNullCid - kTypedDataInt8ArrayCid); 1777 return (kNullCid - kTypedDataInt8ArrayCid);
1780 } 1778 }
1781 1779
1782 } // namespace dart 1780 } // namespace dart
1783 1781
1784 #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