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

Unified Diff: runtime/vm/object.cc

Issue 8803025: Fix linux build (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/object.h ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 2087)
+++ runtime/vm/object.cc (working copy)
@@ -4421,13 +4421,13 @@
}
-intptr_t PcDescriptors::PC(intptr_t index) const {
- return *(EntryAddr(index, kPcEntry));
+uword PcDescriptors::PC(intptr_t index) const {
+ return static_cast<uword>(*(EntryAddr(index, kPcEntry)));
}
-void PcDescriptors::SetPC(intptr_t index, intptr_t value) const {
- *(EntryAddr(index, kPcEntry)) = value;
+void PcDescriptors::SetPC(intptr_t index, uword value) const {
+ *(EntryAddr(index, kPcEntry)) = static_cast<intptr_t>(value);
}
@@ -4691,7 +4691,7 @@
intptr_t token_index = -1;
const PcDescriptors& descriptors = PcDescriptors::Handle(pc_descriptors());
for (intptr_t i = 0; i < descriptors.Length(); i++) {
- if (static_cast<uword>(descriptors.PC(i)) == pc) {
+ if (descriptors.PC(i) == pc) {
token_index = descriptors.TokenIndex(i);
break;
}
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698