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

Unified Diff: runtime/vm/raw_object.h

Issue 8872037: Adjust index of type parameters at finalization time (fix issue 718). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.h
===================================================================
--- runtime/vm/raw_object.h (revision 2282)
+++ runtime/vm/raw_object.h (working copy)
@@ -275,6 +275,14 @@
class RawAbstractType : public RawObject {
+ protected:
+ enum TypeState {
+ kAllocated, // Initial state.
+ kBeingFinalized, // In the process of being finalized.
+ kFinalized, // Type ready for use.
+ };
+
+ private:
RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractType);
friend class ObjectStore;
@@ -283,12 +291,6 @@
class RawType : public RawAbstractType {
private:
- enum TypeState {
- kAllocated, // Initial state.
- kBeingFinalized, // In the process of being finalized.
- kFinalized, // Type ready for use.
- };
-
RAW_HEAP_OBJECT_IMPLEMENTATION(Type);
RawObject** from() {
@@ -309,6 +311,7 @@
RawString* name_;
RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
intptr_t index_;
+ int8_t type_state_;
};
@@ -328,6 +331,7 @@
class RawAbstractTypeArguments : public RawObject {
+ private:
RAW_HEAP_OBJECT_IMPLEMENTATION(AbstractTypeArguments);
};
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698