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

Unified Diff: vm/raw_object.h

Issue 10632009: Make the parser agnostic to the TokenStream implementation. This is the first step towards compacti… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/parser.cc ('k') | vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object.h
===================================================================
--- vm/raw_object.h (revision 9042)
+++ vm/raw_object.h (working copy)
@@ -402,7 +402,7 @@
intptr_t type_arguments_instance_field_offset_; // May be kNoTypeArguments.
intptr_t next_field_offset_; // Offset of the next instance field.
intptr_t num_native_fields_; // Number of native fields in class.
- intptr_t token_index_;
+ intptr_t token_pos_;
int8_t class_state_; // Of type ClassState.
bool is_const_;
bool is_interface_;
@@ -426,7 +426,7 @@
RawObject** to() {
return reinterpret_cast<RawObject**>(&ptr()->factory_signature_class_);
}
- intptr_t token_index_;
+ intptr_t token_pos_;
};
@@ -459,7 +459,7 @@
RawObject** to() {
return reinterpret_cast<RawObject**>(&ptr()->malformed_error_);
}
- intptr_t token_index_;
+ intptr_t token_pos_;
int8_t type_state_;
};
@@ -475,7 +475,7 @@
RawString* name_;
RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
intptr_t index_;
- intptr_t token_index_;
+ intptr_t token_pos_;
int8_t type_state_;
};
@@ -571,8 +571,8 @@
return reinterpret_cast<RawObject**>(&ptr()->implicit_closure_function_);
}
- intptr_t token_index_;
- intptr_t end_token_index_;
+ intptr_t token_pos_;
+ intptr_t end_token_pos_;
intptr_t num_fixed_parameters_;
intptr_t num_optional_parameters_;
intptr_t usage_counter_; // Incremented while function is running.
@@ -595,7 +595,7 @@
RawInstance* value_; // Offset for instance and value for static fields.
RawObject** to() { return reinterpret_cast<RawObject**>(&ptr()->value_); }
- intptr_t token_index_;
+ intptr_t token_pos_;
bool is_static_;
bool is_final_;
bool has_initializer_;
@@ -857,7 +857,7 @@
// TODO(iposva): Switch to convential enum offset based structure to avoid
// alignment mishaps.
struct VariableDesc {
- RawSmi* token_index;
+ RawSmi* token_pos;
RawString* name;
RawBool* is_final;
RawAbstractType* type;
« 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