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

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

Issue 10829431: Eliminate imported_into pointers in Library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/object.cc ('k') | runtime/vm/raw_object_snapshot.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 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); 703 RAW_HEAP_OBJECT_IMPLEMENTATION(Library);
704 704
705 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 705 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
706 RawString* name_; 706 RawString* name_;
707 RawString* url_; 707 RawString* url_;
708 RawScript* script_; 708 RawScript* script_;
709 RawString* private_key_; 709 RawString* private_key_;
710 RawArray* dictionary_; // Top-level names in this library. 710 RawArray* dictionary_; // Top-level names in this library.
711 RawArray* anonymous_classes_; // Classes containing top-level elements. 711 RawArray* anonymous_classes_; // Classes containing top-level elements.
712 RawArray* imports_; // List of libraries imported without prefix. 712 RawArray* imports_; // List of libraries imported without prefix.
713 RawArray* imported_into_; // List of libraries where this library
714 // is imported into without a prefix. 713 // is imported into without a prefix.
715 RawArray* loaded_scripts_; // Array of scripts loaded in this library. 714 RawArray* loaded_scripts_; // Array of scripts loaded in this library.
716 RawObject** to() { 715 RawObject** to() {
717 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); 716 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_);
718 } 717 }
719 718
720 intptr_t index_; // Library id number. 719 intptr_t index_; // Library id number.
721 intptr_t num_imports_; // Number of entries in imports_. 720 intptr_t num_imports_; // Number of entries in imports_.
722 intptr_t num_imported_into_; // Number of entries in imported_into_.
723 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. 721 intptr_t num_anonymous_; // Number of entries in anonymous_classes_.
724 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. 722 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives.
725 bool corelib_imported_; 723 bool corelib_imported_;
726 bool debuggable_; // True if debugger can stop in library. 724 bool debuggable_; // True if debugger can stop in library.
727 int8_t load_state_; // Of type LibraryState. 725 int8_t load_state_; // Of type LibraryState.
728 726
729 friend class Isolate; 727 friend class Isolate;
730 }; 728 };
731 729
732 730
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
1587 kExternalUint64ArrayCid == kByteArrayCid + 18 && 1585 kExternalUint64ArrayCid == kByteArrayCid + 18 &&
1588 kExternalFloat32ArrayCid == kByteArrayCid + 19 && 1586 kExternalFloat32ArrayCid == kByteArrayCid + 19 &&
1589 kExternalFloat64ArrayCid == kByteArrayCid + 20 && 1587 kExternalFloat64ArrayCid == kByteArrayCid + 20 &&
1590 kStacktraceCid == kByteArrayCid + 21); 1588 kStacktraceCid == kByteArrayCid + 21);
1591 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); 1589 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid);
1592 } 1590 }
1593 1591
1594 } // namespace dart 1592 } // namespace dart
1595 1593
1596 #endif // VM_RAW_OBJECT_H_ 1594 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698