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

Unified Diff: runtime/vm/scopes.cc

Issue 343803002: Finishes removing intptr_t from raw object fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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 | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/scopes.cc
===================================================================
--- runtime/vm/scopes.cc (revision 40039)
+++ runtime/vm/scopes.cc (working copy)
@@ -253,12 +253,12 @@
for (int i = 0; i < context_scope.num_variables(); i++) {
VarDesc desc;
desc.name = &String::Handle(context_scope.NameAt(i));
- desc.info.kind = RawLocalVarDescriptors::kContextVar;
+ desc.info.set_kind(RawLocalVarDescriptors::kContextVar);
desc.info.scope_id = context_scope.ContextLevelAt(i);
desc.info.begin_pos = begin_token_pos();
desc.info.end_pos = end_token_pos();
ASSERT(desc.info.begin_pos <= desc.info.end_pos);
- desc.info.index = context_scope.ContextIndexAt(i);
+ desc.info.set_index(context_scope.ContextIndexAt(i));
vars.Add(desc);
}
}
@@ -295,11 +295,11 @@
// context level differs from its parent's level.
VarDesc desc;
desc.name = &String::Handle(); // No name.
- desc.info.kind = RawLocalVarDescriptors::kContextLevel;
+ desc.info.set_kind(RawLocalVarDescriptors::kContextLevel);
desc.info.scope_id = *scope_id;
desc.info.begin_pos = begin_token_pos();
desc.info.end_pos = end_token_pos();
- desc.info.index = context_level();
+ desc.info.set_index(context_level());
vars->Add(desc);
}
for (int i = 0; i < this->variables_.length(); i++) {
@@ -310,39 +310,39 @@
VarDesc desc;
desc.name = &var->name();
if (var->is_captured()) {
- desc.info.kind = RawLocalVarDescriptors::kContextVar;
+ desc.info.set_kind(RawLocalVarDescriptors::kContextVar);
ASSERT(var->owner() != NULL);
ASSERT(var->owner()->context_level() >= 0);
desc.info.scope_id = var->owner()->context_level();
} else {
- desc.info.kind = RawLocalVarDescriptors::kStackVar;
+ desc.info.set_kind(RawLocalVarDescriptors::kStackVar);
desc.info.scope_id = *scope_id;
}
desc.info.begin_pos = var->token_pos();
desc.info.end_pos = var->owner()->end_token_pos();
- desc.info.index = var->index();
+ desc.info.set_index(var->index());
vars->Add(desc);
} else if (var->name().raw() == Symbols::SavedEntryContextVar().raw()) {
// This is the local variable in which the function saves the
// caller's chain of closure contexts (caller's CTX register).
VarDesc desc;
desc.name = &var->name();
- desc.info.kind = RawLocalVarDescriptors::kSavedEntryContext;
+ desc.info.set_kind(RawLocalVarDescriptors::kSavedEntryContext);
desc.info.scope_id = 0;
desc.info.begin_pos = 0;
desc.info.end_pos = 0;
- desc.info.index = var->index();
+ desc.info.set_index(var->index());
vars->Add(desc);
} else if (var->name().raw() == Symbols::SavedCurrentContextVar().raw()) {
// This is the local variable in which the function saves its
// own context before calling a closure function.
VarDesc desc;
desc.name = &var->name();
- desc.info.kind = RawLocalVarDescriptors::kSavedCurrentContext;
+ desc.info.set_kind(RawLocalVarDescriptors::kSavedCurrentContext);
desc.info.scope_id = 0;
desc.info.begin_pos = 0;
desc.info.end_pos = 0;
- desc.info.index = var->index();
+ desc.info.set_index(var->index());
vars->Add(desc);
}
}
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698