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

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

Issue 135123011: Introduce cache of resolved names in library (Closed) Base URL: http://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
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/resolver.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_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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 }; 774 };
775 775
776 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); 776 RAW_HEAP_OBJECT_IMPLEMENTATION(Library);
777 777
778 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 778 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
779 RawString* name_; 779 RawString* name_;
780 RawString* url_; 780 RawString* url_;
781 RawScript* script_; 781 RawScript* script_;
782 RawString* private_key_; 782 RawString* private_key_;
783 RawArray* dictionary_; // Top-level names in this library. 783 RawArray* dictionary_; // Top-level names in this library.
784 RawArray* resolved_names_; // Cache of resolved names in library scope.
784 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc. 785 RawGrowableObjectArray* metadata_; // Metadata on classes, methods etc.
785 RawArray* anonymous_classes_; // Classes containing top-level elements. 786 RawArray* anonymous_classes_; // Classes containing top-level elements.
786 RawArray* imports_; // List of Namespaces imported without prefix. 787 RawArray* imports_; // List of Namespaces imported without prefix.
787 RawArray* exports_; // List of re-exported Namespaces. 788 RawArray* exports_; // List of re-exported Namespaces.
788 RawArray* loaded_scripts_; // Array of scripts loaded in this library. 789 RawArray* loaded_scripts_; // Array of scripts loaded in this library.
789 RawObject** to() { 790 RawObject** to() {
790 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); 791 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_);
791 } 792 }
792 793
793 intptr_t index_; // Library id number. 794 intptr_t index_; // Library id number.
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1788 // Make sure this is updated when new TypedData types are added. 1789 // Make sure this is updated when new TypedData types are added.
1789 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1790 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1790 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1791 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1791 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1792 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1792 return (kNullCid - kTypedDataInt8ArrayCid); 1793 return (kNullCid - kTypedDataInt8ArrayCid);
1793 } 1794 }
1794 1795
1795 } // namespace dart 1796 } // namespace dart
1796 1797
1797 #endif // VM_RAW_OBJECT_H_ 1798 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698