| 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 | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are 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 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1585 EnsureSpace ensure_space(this); | 1585 EnsureSpace ensure_space(this); |
| 1586 EMIT(0xFF); | 1586 EMIT(0xFF); |
| 1587 emit_operand(edx, adr); | 1587 emit_operand(edx, adr); |
| 1588 } | 1588 } |
| 1589 | 1589 |
| 1590 | 1590 |
| 1591 int Assembler::CallSize(Handle<Code> code, RelocInfo::Mode rmode) { | 1591 int Assembler::CallSize(Handle<Code> code, RelocInfo::Mode rmode) { |
| 1592 return 1 /* EMIT */ + sizeof(uint32_t) /* emit */; | 1592 return 1 /* EMIT */ + sizeof(uint32_t) /* emit */; |
| 1593 } | 1593 } |
| 1594 | 1594 |
| 1595 | 1595 void Assembler::call(Handle<Code> code, RelocInfo::Mode rmode) { |
| 1596 void Assembler::call(Handle<Code> code, | |
| 1597 RelocInfo::Mode rmode, | |
| 1598 TypeFeedbackId ast_id) { | |
| 1599 EnsureSpace ensure_space(this); | 1596 EnsureSpace ensure_space(this); |
| 1600 DCHECK(RelocInfo::IsCodeTarget(rmode) | 1597 DCHECK(RelocInfo::IsCodeTarget(rmode) |
| 1601 || rmode == RelocInfo::CODE_AGE_SEQUENCE); | 1598 || rmode == RelocInfo::CODE_AGE_SEQUENCE); |
| 1602 EMIT(0xE8); | 1599 EMIT(0xE8); |
| 1603 emit(code, rmode, ast_id); | 1600 emit(code, rmode); |
| 1604 } | 1601 } |
| 1605 | 1602 |
| 1606 | 1603 |
| 1607 void Assembler::jmp(Label* L, Label::Distance distance) { | 1604 void Assembler::jmp(Label* L, Label::Distance distance) { |
| 1608 EnsureSpace ensure_space(this); | 1605 EnsureSpace ensure_space(this); |
| 1609 if (L->is_bound()) { | 1606 if (L->is_bound()) { |
| 1610 const int short_size = 2; | 1607 const int short_size = 2; |
| 1611 const int long_size = 5; | 1608 const int long_size = 5; |
| 1612 int offs = L->pos() - pc_offset(); | 1609 int offs = L->pos() - pc_offset(); |
| 1613 DCHECK(offs <= 0); | 1610 DCHECK(offs <= 0); |
| (...skipping 1653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3267 } | 3264 } |
| 3268 RelocInfo rinfo(pc_, rmode, data, NULL); | 3265 RelocInfo rinfo(pc_, rmode, data, NULL); |
| 3269 reloc_info_writer.Write(&rinfo); | 3266 reloc_info_writer.Write(&rinfo); |
| 3270 } | 3267 } |
| 3271 | 3268 |
| 3272 | 3269 |
| 3273 } // namespace internal | 3270 } // namespace internal |
| 3274 } // namespace v8 | 3271 } // namespace v8 |
| 3275 | 3272 |
| 3276 #endif // V8_TARGET_ARCH_IA32 | 3273 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |