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

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

Issue 11047027: Implement export clause in VM (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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) 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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 RAW_HEAP_OBJECT_IMPLEMENTATION(Library); 668 RAW_HEAP_OBJECT_IMPLEMENTATION(Library);
669 669
670 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 670 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
671 RawString* name_; 671 RawString* name_;
672 RawString* url_; 672 RawString* url_;
673 RawScript* script_; 673 RawScript* script_;
674 RawString* private_key_; 674 RawString* private_key_;
675 RawArray* dictionary_; // Top-level names in this library. 675 RawArray* dictionary_; // Top-level names in this library.
676 RawArray* anonymous_classes_; // Classes containing top-level elements. 676 RawArray* anonymous_classes_; // Classes containing top-level elements.
677 RawArray* imports_; // List of Namespaces imported without prefix. 677 RawArray* imports_; // List of Namespaces imported without prefix.
678 RawArray* exports_; // List of re-exported Namespaces
siva 2012/10/08 20:17:42 missing '.'
Ivan Posva 2012/10/09 00:53:19 Done.
678 RawArray* loaded_scripts_; // Array of scripts loaded in this library. 679 RawArray* loaded_scripts_; // Array of scripts loaded in this library.
679 RawObject** to() { 680 RawObject** to() {
680 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); 681 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_);
681 } 682 }
682 683
683 intptr_t index_; // Library id number. 684 intptr_t index_; // Library id number.
684 intptr_t num_imports_; // Number of entries in imports_. 685 intptr_t num_imports_; // Number of entries in imports_.
685 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. 686 intptr_t num_anonymous_; // Number of entries in anonymous_classes_.
686 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. 687 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives.
687 bool corelib_imported_; 688 bool corelib_imported_;
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 kExternalUint64ArrayCid == kByteArrayCid + 18 && 1622 kExternalUint64ArrayCid == kByteArrayCid + 18 &&
1622 kExternalFloat32ArrayCid == kByteArrayCid + 19 && 1623 kExternalFloat32ArrayCid == kByteArrayCid + 19 &&
1623 kExternalFloat64ArrayCid == kByteArrayCid + 20 && 1624 kExternalFloat64ArrayCid == kByteArrayCid + 20 &&
1624 kStacktraceCid == kByteArrayCid + 21); 1625 kStacktraceCid == kByteArrayCid + 21);
1625 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid); 1626 return (index >= kByteArrayCid && index <= kExternalFloat64ArrayCid);
1626 } 1627 }
1627 1628
1628 } // namespace dart 1629 } // namespace dart
1629 1630
1630 #endif // VM_RAW_OBJECT_H_ 1631 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/vm/object.cc ('K') | « runtime/vm/parser.cc ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698