| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 525 int offset = L->near_link_pos() - pc_offset(); | 525 int offset = L->near_link_pos() - pc_offset(); |
| 526 DCHECK(is_int8(offset)); | 526 DCHECK(is_int8(offset)); |
| 527 disp = static_cast<byte>(offset & 0xFF); | 527 disp = static_cast<byte>(offset & 0xFF); |
| 528 } | 528 } |
| 529 L->link_to(pc_offset(), Label::kNear); | 529 L->link_to(pc_offset(), Label::kNear); |
| 530 *pc_++ = disp; | 530 *pc_++ = disp; |
| 531 } | 531 } |
| 532 | 532 |
| 533 | 533 |
| 534 void Assembler::deserialization_set_target_internal_reference_at( | 534 void Assembler::deserialization_set_target_internal_reference_at( |
| 535 Address pc, Address target) { | 535 Address pc, Address target, RelocInfo::Mode mode) { |
| 536 Memory::Address_at(pc) = target; | 536 Memory::Address_at(pc) = target; |
| 537 } | 537 } |
| 538 | 538 |
| 539 | 539 |
| 540 void Operand::set_modrm(int mod, Register rm) { | 540 void Operand::set_modrm(int mod, Register rm) { |
| 541 DCHECK((mod & -4) == 0); | 541 DCHECK((mod & -4) == 0); |
| 542 buf_[0] = mod << 6 | rm.code(); | 542 buf_[0] = mod << 6 | rm.code(); |
| 543 len_ = 1; | 543 len_ = 1; |
| 544 } | 544 } |
| 545 | 545 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 588 | 588 |
| 589 | 589 |
| 590 Operand::Operand(Immediate imm) { | 590 Operand::Operand(Immediate imm) { |
| 591 // [disp/r] | 591 // [disp/r] |
| 592 set_modrm(0, ebp); | 592 set_modrm(0, ebp); |
| 593 set_dispr(imm.x_, imm.rmode_); | 593 set_dispr(imm.x_, imm.rmode_); |
| 594 } | 594 } |
| 595 } } // namespace v8::internal | 595 } } // namespace v8::internal |
| 596 | 596 |
| 597 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ | 597 #endif // V8_IA32_ASSEMBLER_IA32_INL_H_ |
| OLD | NEW |