| Index: runtime/vm/assembler_ia32.cc
 | 
| ===================================================================
 | 
| --- runtime/vm/assembler_ia32.cc	(revision 28314)
 | 
| +++ runtime/vm/assembler_ia32.cc	(working copy)
 | 
| @@ -74,7 +74,7 @@
 | 
|  
 | 
|  class DirectCallRelocation : public AssemblerFixup {
 | 
|   public:
 | 
| -  void Process(const MemoryRegion& region, int position) {
 | 
| +  void Process(const MemoryRegion& region, intptr_t position) {
 | 
|      // Direct calls are relative to the following instruction on x86.
 | 
|      int32_t pointer = region.Load<int32_t>(position);
 | 
|      int32_t delta = region.start() + position + sizeof(int32_t);
 | 
| @@ -83,7 +83,7 @@
 | 
|  };
 | 
|  
 | 
|  
 | 
| -void Assembler::InitializeMemoryWithBreakpoints(uword data, int length) {
 | 
| +void Assembler::InitializeMemoryWithBreakpoints(uword data, intptr_t length) {
 | 
|    memset(reinterpret_cast<void*>(data), Instr::kBreakPointInstruction, length);
 | 
|  }
 | 
|  
 | 
| @@ -1798,7 +1798,7 @@
 | 
|    if (label->IsBound()) {
 | 
|      static const int kShortSize = 2;
 | 
|      static const int kLongSize = 6;
 | 
| -    int offset = label->Position() - buffer_.Size();
 | 
| +    intptr_t offset = label->Position() - buffer_.Size();
 | 
|      ASSERT(offset <= 0);
 | 
|      if (Utils::IsInt(8, offset - kShortSize)) {
 | 
|        EmitUint8(0x70 + condition);
 | 
| @@ -1840,7 +1840,7 @@
 | 
|    if (label->IsBound()) {
 | 
|      static const int kShortSize = 2;
 | 
|      static const int kLongSize = 5;
 | 
| -    int offset = label->Position() - buffer_.Size();
 | 
| +    intptr_t offset = label->Position() - buffer_.Size();
 | 
|      ASSERT(offset <= 0);
 | 
|      if (Utils::IsInt(8, offset - kShortSize)) {
 | 
|        EmitUint8(0xEB);
 | 
| @@ -1906,7 +1906,7 @@
 | 
|  
 | 
|  
 | 
|  void Assembler::AddImmediate(Register reg, const Immediate& imm) {
 | 
| -  int value = imm.value();
 | 
| +  intptr_t value = imm.value();
 | 
|    if (value > 0) {
 | 
|      if (value == 1) {
 | 
|        incl(reg);
 | 
| @@ -2214,14 +2214,14 @@
 | 
|  }
 | 
|  
 | 
|  
 | 
| -void Assembler::Align(int alignment, int offset) {
 | 
| +void Assembler::Align(intptr_t alignment, intptr_t offset) {
 | 
|    ASSERT(Utils::IsPowerOfTwo(alignment));
 | 
| -  int pos = offset + buffer_.GetPosition();
 | 
| -  int mod = pos & (alignment - 1);
 | 
| +  intptr_t pos = offset + buffer_.GetPosition();
 | 
| +  intptr_t mod = pos & (alignment - 1);
 | 
|    if (mod == 0) {
 | 
|      return;
 | 
|    }
 | 
| -  int bytes_needed = alignment - mod;
 | 
| +  intptr_t bytes_needed = alignment - mod;
 | 
|    while (bytes_needed > MAX_NOP_SIZE) {
 | 
|      nop(MAX_NOP_SIZE);
 | 
|      bytes_needed -= MAX_NOP_SIZE;
 | 
| @@ -2234,17 +2234,17 @@
 | 
|  
 | 
|  
 | 
|  void Assembler::Bind(Label* label) {
 | 
| -  int bound = buffer_.Size();
 | 
| +  intptr_t bound = buffer_.Size();
 | 
|    ASSERT(!label->IsBound());  // Labels can only be bound once.
 | 
|    while (label->IsLinked()) {
 | 
| -    int position = label->LinkPosition();
 | 
| -    int next = buffer_.Load<int32_t>(position);
 | 
| +    intptr_t position = label->LinkPosition();
 | 
| +    intptr_t next = buffer_.Load<int32_t>(position);
 | 
|      buffer_.Store<int32_t>(position, bound - (position + 4));
 | 
|      label->position_ = next;
 | 
|    }
 | 
|    while (label->HasNear()) {
 | 
| -    int position = label->NearPosition();
 | 
| -    int offset = bound - (position + 1);
 | 
| +    intptr_t position = label->NearPosition();
 | 
| +    intptr_t offset = bound - (position + 1);
 | 
|      ASSERT(Utils::IsInt(8, offset));
 | 
|      buffer_.Store<int8_t>(position, offset);
 | 
|    }
 | 
| @@ -2346,13 +2346,13 @@
 | 
|  
 | 
|  void Assembler::EmitOperand(int rm, const Operand& operand) {
 | 
|    ASSERT(rm >= 0 && rm < 8);
 | 
| -  const int length = operand.length_;
 | 
| +  const intptr_t length = operand.length_;
 | 
|    ASSERT(length > 0);
 | 
|    // Emit the ModRM byte updated with the given RM value.
 | 
|    ASSERT((operand.encoding_[0] & 0x38) == 0);
 | 
|    EmitUint8(operand.encoding_[0] + (rm << 3));
 | 
|    // Emit the rest of the encoded operand.
 | 
| -  for (int i = 1; i < length; i++) {
 | 
| +  for (intptr_t i = 1; i < length; i++) {
 | 
|      EmitUint8(operand.encoding_[i]);
 | 
|    }
 | 
|  }
 | 
| @@ -2384,9 +2384,9 @@
 | 
|  }
 | 
|  
 | 
|  
 | 
| -void Assembler::EmitLabel(Label* label, int instruction_size) {
 | 
| +void Assembler::EmitLabel(Label* label, intptr_t instruction_size) {
 | 
|    if (label->IsBound()) {
 | 
| -    int offset = label->Position() - buffer_.Size();
 | 
| +    intptr_t offset = label->Position() - buffer_.Size();
 | 
|      ASSERT(offset <= 0);
 | 
|      EmitInt32(offset - instruction_size);
 | 
|    } else {
 | 
| @@ -2397,7 +2397,7 @@
 | 
|  
 | 
|  void Assembler::EmitLabelLink(Label* label) {
 | 
|    ASSERT(!label->IsBound());
 | 
| -  int position = buffer_.Size();
 | 
| +  intptr_t position = buffer_.Size();
 | 
|    EmitInt32(label->position_);
 | 
|    label->LinkTo(position);
 | 
|  }
 | 
| @@ -2405,7 +2405,7 @@
 | 
|  
 | 
|  void Assembler::EmitNearLabelLink(Label* label) {
 | 
|    ASSERT(!label->IsBound());
 | 
| -  int position = buffer_.Size();
 | 
| +  intptr_t position = buffer_.Size();
 | 
|    EmitUint8(0);
 | 
|    label->NearLinkTo(position);
 | 
|  }
 | 
| 
 |