| 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 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1581 | 1581 |
| 1582 void Assembler::call(const Operand& adr) { | 1582 void Assembler::call(const Operand& adr) { |
| 1583 positions_recorder()->WriteRecordedPositions(); | 1583 positions_recorder()->WriteRecordedPositions(); |
| 1584 EnsureSpace ensure_space(this); | 1584 EnsureSpace ensure_space(this); |
| 1585 last_pc_ = pc_; | 1585 last_pc_ = pc_; |
| 1586 EMIT(0xFF); | 1586 EMIT(0xFF); |
| 1587 emit_operand(edx, adr); | 1587 emit_operand(edx, adr); |
| 1588 } | 1588 } |
| 1589 | 1589 |
| 1590 | 1590 |
| 1591 void Assembler::call(Handle<Code> code, RelocInfo::Mode rmode) { | 1591 void Assembler::call(Handle<Code> code, RelocInfo::Mode rmode, AstId id) { |
| 1592 positions_recorder()->WriteRecordedPositions(); | 1592 positions_recorder()->WriteRecordedPositions(); |
| 1593 EnsureSpace ensure_space(this); | 1593 EnsureSpace ensure_space(this); |
| 1594 last_pc_ = pc_; | 1594 last_pc_ = pc_; |
| 1595 ASSERT(RelocInfo::IsCodeTarget(rmode)); | 1595 ASSERT(RelocInfo::IsCodeTarget(rmode)); |
| 1596 EMIT(0xE8); | 1596 EMIT(0xE8); |
| 1597 emit(reinterpret_cast<intptr_t>(code.location()), rmode); | 1597 emit(reinterpret_cast<intptr_t>(code.location()), rmode, id); |
| 1598 } | 1598 } |
| 1599 | 1599 |
| 1600 | 1600 |
| 1601 void Assembler::jmp(Label* L) { | 1601 void Assembler::jmp(Label* L) { |
| 1602 EnsureSpace ensure_space(this); | 1602 EnsureSpace ensure_space(this); |
| 1603 last_pc_ = pc_; | 1603 last_pc_ = pc_; |
| 1604 if (L->is_bound()) { | 1604 if (L->is_bound()) { |
| 1605 const int short_size = 2; | 1605 const int short_size = 2; |
| 1606 const int long_size = 5; | 1606 const int long_size = 5; |
| 1607 int offs = L->pos() - pc_offset(); | 1607 int offs = L->pos() - pc_offset(); |
| (...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2696 fprintf(coverage_log, "%s\n", file_line); | 2696 fprintf(coverage_log, "%s\n", file_line); |
| 2697 fflush(coverage_log); | 2697 fflush(coverage_log); |
| 2698 } | 2698 } |
| 2699 } | 2699 } |
| 2700 | 2700 |
| 2701 #endif | 2701 #endif |
| 2702 | 2702 |
| 2703 } } // namespace v8::internal | 2703 } } // namespace v8::internal |
| 2704 | 2704 |
| 2705 #endif // V8_TARGET_ARCH_IA32 | 2705 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |