Index: runtime/vm/raw_object.h |
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h |
index 35be68ab7643c5e93aa04ecb288549b3dda52c38..248b39aa93fa15611c29d19c84a50a7eb2141550 100644 |
--- a/runtime/vm/raw_object.h |
+++ b/runtime/vm/raw_object.h |
@@ -10,6 +10,7 @@ |
#include "vm/globals.h" |
#include "vm/snapshot.h" |
#include "vm/token.h" |
+#include "vm/token_descriptor.h" |
#include "vm/verified_memory.h" |
namespace dart { |
@@ -675,7 +676,7 @@ class RawClass : public RawObject { |
} |
cpp_vtable handle_vtable_; |
- int32_t token_pos_; |
+ TokenDescriptor token_pos_; |
int32_t instance_size_in_words_; // Size if fixed len or 0 if variable len. |
int32_t type_arguments_field_offset_in_words_; // Offset of type args fld. |
int32_t next_field_offset_in_words_; // Offset of the next instance field. |
@@ -704,7 +705,7 @@ class RawUnresolvedClass : public RawObject { |
RawObject** to() { |
return reinterpret_cast<RawObject**>(&ptr()->ident_); |
} |
- int32_t token_pos_; |
+ TokenDescriptor token_pos_; |
}; |
@@ -813,8 +814,8 @@ class RawFunction : public RawObject { |
} |
uword entry_point_; |
- int32_t token_pos_; |
- int32_t end_token_pos_; |
+ TokenDescriptor token_pos_; |
+ TokenDescriptor end_token_pos_; |
int32_t usage_counter_; // Incremented while function is running. |
int16_t num_fixed_parameters_; |
int16_t num_optional_parameters_; // > 0: positional; < 0: named. |
@@ -890,7 +891,7 @@ class RawField : public RawObject { |
return reinterpret_cast<RawObject**>(&ptr()->guarded_list_length_); |
} |
- int32_t token_pos_; |
+ TokenDescriptor token_pos_; |
classid_t guarded_cid_; |
classid_t is_nullable_; // kNullCid if field can contain null value and |
// any other value otherwise. |
@@ -1276,8 +1277,8 @@ class RawLocalVarDescriptors : public RawObject { |
struct VarInfo { |
int32_t index_kind; // Bitfield for slot index on stack or in context, |
// and Entry kind of type VarInfoKind. |
- int32_t begin_pos; // Token position of scope start. |
- int32_t end_pos; // Token position of scope end. |
+ TokenDescriptor begin_pos; // Token position of scope start. |
+ TokenDescriptor end_pos; // Token position of scope end. |
int16_t scope_id; // Scope to which the variable belongs. |
VarInfoKind kind() const { |
@@ -1492,7 +1493,7 @@ class RawLanguageError : public RawError { |
RawObject** to() { |
return reinterpret_cast<RawObject**>(&ptr()->formatted_message_); |
} |
- int32_t token_pos_; // Source position in script_. |
+ TokenDescriptor token_pos_; // Source position in script_. |
bool report_after_token_; // Report message at or after the token. |
int8_t kind_; // Of type LanguageError::Kind. |
}; |
@@ -1580,7 +1581,7 @@ class RawType : public RawAbstractType { |
RawObject** to() { |
return reinterpret_cast<RawObject**>(&ptr()->error_); |
} |
- int32_t token_pos_; |
+ TokenDescriptor token_pos_; |
int8_t type_state_; |
}; |
@@ -1599,7 +1600,7 @@ class RawFunctionType : public RawAbstractType { |
RawObject** to() { |
return reinterpret_cast<RawObject**>(&ptr()->error_); |
} |
- int32_t token_pos_; |
+ TokenDescriptor token_pos_; |
int8_t type_state_; |
}; |
@@ -1629,7 +1630,7 @@ class RawTypeParameter : public RawAbstractType { |
RawString* name_; |
RawAbstractType* bound_; // ObjectType if no explicit bound specified. |
RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->bound_); } |
- int32_t token_pos_; |
+ TokenDescriptor token_pos_; |
int16_t index_; |
int8_t type_state_; |
}; |