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

Unified Diff: runtime/vm/compiler.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/code_descriptors.cc ('k') | runtime/vm/dart_api_message.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 40039)
+++ runtime/vm/compiler.cc (working copy)
@@ -739,24 +739,24 @@
var_name = var_descriptors.GetName(i);
RawLocalVarDescriptors::VarInfo var_info;
var_descriptors.GetInfo(i, &var_info);
- if (var_info.kind == RawLocalVarDescriptors::kSavedEntryContext) {
- OS::Print(" saved caller's CTX reg offset %" Pd "\n", var_info.index);
- } else if (var_info.kind == RawLocalVarDescriptors::kSavedCurrentContext) {
- OS::Print(" saved current CTX reg offset %" Pd "\n", var_info.index);
+ const int8_t kind = var_info.kind();
+ if (kind == RawLocalVarDescriptors::kSavedEntryContext) {
+ OS::Print(" saved caller's CTX reg offset %d\n", var_info.index());
+ } else if (kind == RawLocalVarDescriptors::kSavedCurrentContext) {
+ OS::Print(" saved current CTX reg offset %d\n", var_info.index());
} else {
- if (var_info.kind == RawLocalVarDescriptors::kContextLevel) {
- OS::Print(" context level %" Pd " scope %d",
- var_info.index, var_info.scope_id);
- } else if (var_info.kind == RawLocalVarDescriptors::kStackVar) {
- OS::Print(" stack var '%s' offset %" Pd "",
- var_name.ToCString(), var_info.index);
+ if (kind == RawLocalVarDescriptors::kContextLevel) {
+ OS::Print(" context level %d scope %d", var_info.index(),
+ var_info.scope_id);
+ } else if (kind == RawLocalVarDescriptors::kStackVar) {
+ OS::Print(" stack var '%s' offset %d",
+ var_name.ToCString(), var_info.index());
} else {
- ASSERT(var_info.kind == RawLocalVarDescriptors::kContextVar);
- OS::Print(" context var '%s' level %d offset %" Pd "",
- var_name.ToCString(), var_info.scope_id, var_info.index);
+ ASSERT(kind == RawLocalVarDescriptors::kContextVar);
+ OS::Print(" context var '%s' level %d offset %d",
+ var_name.ToCString(), var_info.scope_id, var_info.index());
}
- OS::Print(" (valid %" Pd "-%" Pd ")\n",
- var_info.begin_pos, var_info.end_pos);
+ OS::Print(" (valid %d-%d)\n", var_info.begin_pos, var_info.end_pos);
}
}
OS::Print("}\n");
« no previous file with comments | « runtime/vm/code_descriptors.cc ('k') | runtime/vm/dart_api_message.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698