| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 6582fc1a096a0915636e764ad892db85a2840c1e..dd85684bfa7a4970bb280ec99ff95ca3b66e81d1 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -4975,7 +4975,7 @@ void Code::CodeIterateBody(ObjectVisitor* v) {
|
| }
|
|
|
|
|
| -void Code::Relocate(int delta) {
|
| +void Code::Relocate(intptr_t delta) {
|
| for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) {
|
| it.rinfo()->apply(delta);
|
| }
|
| @@ -5041,8 +5041,9 @@ int Code::SourcePosition(Address pc) {
|
| // Only look at positions after the current pc.
|
| if (it.rinfo()->pc() < pc) {
|
| // Get position and distance.
|
| - int dist = pc - it.rinfo()->pc();
|
| - int pos = it.rinfo()->data();
|
| +
|
| + int dist = static_cast<int>(pc - it.rinfo()->pc());
|
| + int pos = static_cast<int>(it.rinfo()->data());
|
| // If this position is closer than the current candidate or if it has the
|
| // same distance as the current candidate and the position is higher then
|
| // this position is the new candidate.
|
| @@ -5069,7 +5070,7 @@ int Code::SourceStatementPosition(Address pc) {
|
| RelocIterator it(this, RelocInfo::kPositionMask);
|
| while (!it.done()) {
|
| if (RelocInfo::IsStatementPosition(it.rinfo()->rmode())) {
|
| - int p = it.rinfo()->data();
|
| + int p = static_cast<int>(it.rinfo()->data());
|
| if (statement_position < p && p <= position) {
|
| statement_position = p;
|
| }
|
|
|