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: vm/raw_object.h

Issue 8342046: Add an imported into list for libraries so that it is possible to lookup (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 2 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 "vm/assert.h" 8 #include "vm/assert.h"
9 #include "vm/globals.h" 9 #include "vm/globals.h"
10 #include "vm/snapshot.h" 10 #include "vm/snapshot.h"
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 class RawLibrary : public RawObject { 440 class RawLibrary : public RawObject {
441 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); 441 RAW_HEAP_OBJECT_IMPLEMENTATION(Library);
442 442
443 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 443 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
444 RawString* name_; 444 RawString* name_;
445 RawString* url_; 445 RawString* url_;
446 RawScript* script_; 446 RawScript* script_;
447 RawString* private_key_; 447 RawString* private_key_;
448 RawArray* dictionary_; // Top-level names in this library. 448 RawArray* dictionary_; // Top-level names in this library.
449 RawArray* anonymous_classes_; // Classes containing top-level elements. 449 RawArray* anonymous_classes_; // Classes containing top-level elements.
450 RawArray* imports_; // Imported libraries. 450 RawArray* imports_; // List of imported libraries.
451 RawArray* imported_into_; // List of libraries where this is imported.
hausner 2011/10/19 23:56:27 It doesn't fit on one line, but I think it's worth
siva 2011/10/20 23:08:47 Done.
451 RawLibrary* next_registered_; // Linked list of registered libraries. 452 RawLibrary* next_registered_; // Linked list of registered libraries.
452 RawObject** to() { 453 RawObject** to() {
453 return reinterpret_cast<RawObject**>(&ptr()->next_registered_); 454 return reinterpret_cast<RawObject**>(&ptr()->next_registered_);
454 } 455 }
455 456
456 intptr_t num_imports_; // Number of entries in imports_. 457 intptr_t num_imports_; // Number of entries in imports_.
458 intptr_t num_imported_into_; // Number of entries in imported_into_.
457 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. 459 intptr_t num_anonymous_; // Number of entries in anonymous_classes_.
458 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. 460 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives.
459 bool corelib_imported_; 461 bool corelib_imported_;
460 bool loaded_; 462 bool loaded_;
461 }; 463 };
462 464
463 465
464 class RawLibraryPrefix : public RawObject { 466 class RawLibraryPrefix : public RawObject {
465 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); 467 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix);
466 468
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 intptr_t type_; // Uninitialized, simple or complex. 756 intptr_t type_; // Uninitialized, simple or complex.
755 intptr_t flags_; // Represents global/local, case insensitive, multiline. 757 intptr_t flags_; // Represents global/local, case insensitive, multiline.
756 758
757 // Variable length data follows here. 759 // Variable length data follows here.
758 uint8_t data_[0]; 760 uint8_t data_[0];
759 }; 761 };
760 762
761 } // namespace dart 763 } // namespace dart
762 764
763 #endif // VM_RAW_OBJECT_H_ 765 #endif // VM_RAW_OBJECT_H_
OLDNEW
« vm/object.cc ('K') | « vm/object_test.cc ('k') | vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698