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

Unified Diff: runtime/vm/code_patcher_x64.cc

Issue 26345002: Last cleanup int -> intptr_t. Also removed a hack. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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/simulator_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_patcher_x64.cc
===================================================================
--- runtime/vm/code_patcher_x64.cc (revision 28370)
+++ runtime/vm/code_patcher_x64.cc (working copy)
@@ -43,17 +43,17 @@
}
RawObject* ic_data() const {
- int index = InstructionPattern::IndexFromPPLoad(start_ + 3);
+ intptr_t index = InstructionPattern::IndexFromPPLoad(start_ + 3);
return object_pool_.At(index);
}
uword target() const {
- int index = InstructionPattern::IndexFromPPLoad(start_ + 10);
+ intptr_t index = InstructionPattern::IndexFromPPLoad(start_ + 10);
return reinterpret_cast<uword>(object_pool_.At(index));
}
void set_target(uword target) const {
- int index = InstructionPattern::IndexFromPPLoad(start_ + 10);
+ intptr_t index = InstructionPattern::IndexFromPPLoad(start_ + 10);
const Smi& smi = Smi::Handle(reinterpret_cast<RawSmi*>(target));
object_pool_.SetAt(index, smi);
// No need to flush the instruction cache, since the code is not modified.
@@ -124,12 +124,12 @@
}
uword target() const {
- int index = InstructionPattern::IndexFromPPLoad(start_ + 3);
+ intptr_t index = InstructionPattern::IndexFromPPLoad(start_ + 3);
return reinterpret_cast<uword>(object_pool_.At(index));
}
void set_target(uword target) const {
- int index = InstructionPattern::IndexFromPPLoad(start_ + 3);
+ intptr_t index = InstructionPattern::IndexFromPPLoad(start_ + 3);
const Smi& smi = Smi::Handle(reinterpret_cast<RawSmi*>(target));
object_pool_.SetAt(index, smi);
// No need to flush the instruction cache, since the code is not modified.
« no previous file with comments | « runtime/vm/code_descriptors.cc ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698