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

Side by Side Diff: vm/raw_object.h

Issue 9363048: Implement capability to use the same library prefix for multiple library imports (currently this ... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « vm/parser.cc ('k') | 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/snapshot.h" 10 #include "vm/snapshot.h"
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 609
610 friend class Isolate; 610 friend class Isolate;
611 }; 611 };
612 612
613 613
614 class RawLibraryPrefix : public RawObject { 614 class RawLibraryPrefix : public RawObject {
615 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix); 615 RAW_HEAP_OBJECT_IMPLEMENTATION(LibraryPrefix);
616 616
617 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 617 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
618 RawString* name_; // library prefix name. 618 RawString* name_; // library prefix name.
619 RawLibrary* library_; // library imported with a prefix. 619 RawArray* libraries_; // libraries imported with this prefix.
620 RawObject** to() { 620 RawObject** to() {
621 return reinterpret_cast<RawObject**>(&ptr()->library_); 621 return reinterpret_cast<RawObject**>(&ptr()->libraries_);
622 } 622 }
623 intptr_t num_libs_; // Number of library entries in libraries_.
623 }; 624 };
624 625
625 626
626 class RawCode : public RawObject { 627 class RawCode : public RawObject {
627 RAW_HEAP_OBJECT_IMPLEMENTATION(Code); 628 RAW_HEAP_OBJECT_IMPLEMENTATION(Code);
628 629
629 RawObject** from() { 630 RawObject** from() {
630 return reinterpret_cast<RawObject**>(&ptr()->instructions_); 631 return reinterpret_cast<RawObject**>(&ptr()->instructions_);
631 } 632 }
632 RawInstructions* instructions_; 633 RawInstructions* instructions_;
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 intptr_t type_; // Uninitialized, simple or complex. 1079 intptr_t type_; // Uninitialized, simple or complex.
1079 intptr_t flags_; // Represents global/local, case insensitive, multiline. 1080 intptr_t flags_; // Represents global/local, case insensitive, multiline.
1080 1081
1081 // Variable length data follows here. 1082 // Variable length data follows here.
1082 uint8_t data_[0]; 1083 uint8_t data_[0];
1083 }; 1084 };
1084 1085
1085 } // namespace dart 1086 } // namespace dart
1086 1087
1087 #endif // VM_RAW_OBJECT_H_ 1088 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « vm/parser.cc ('k') | vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698