| 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 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 | 685 |
| 686 void Assembler::bind(Label* L) { | 686 void Assembler::bind(Label* L) { |
| 687 ASSERT(!L->is_bound()); // label can only be bound once | 687 ASSERT(!L->is_bound()); // label can only be bound once |
| 688 bind_to(L, pc_offset()); | 688 bind_to(L, pc_offset()); |
| 689 } | 689 } |
| 690 | 690 |
| 691 | 691 |
| 692 void Assembler::next(Label* L) { | 692 void Assembler::next(Label* L) { |
| 693 ASSERT(L->is_linked()); | 693 ASSERT(L->is_linked()); |
| 694 int link = target_at(L->pos()); | 694 int link = target_at(L->pos()); |
| 695 if (link > 0) { | 695 if (link == kEndOfChain) { |
| 696 L->Unuse(); |
| 697 } else { |
| 698 ASSERT(link >= 0); |
| 696 L->link_to(link); | 699 L->link_to(link); |
| 697 } else { | |
| 698 ASSERT(link == kEndOfChain); | |
| 699 L->Unuse(); | |
| 700 } | 700 } |
| 701 } | 701 } |
| 702 | 702 |
| 703 | 703 |
| 704 static Instr EncodeMovwImmediate(uint32_t immediate) { | 704 static Instr EncodeMovwImmediate(uint32_t immediate) { |
| 705 ASSERT(immediate < 0x10000); | 705 ASSERT(immediate < 0x10000); |
| 706 return ((immediate & 0xf000) << 4) | (immediate & 0xfff); | 706 return ((immediate & 0xf000) << 4) | (immediate & 0xfff); |
| 707 } | 707 } |
| 708 | 708 |
| 709 | 709 |
| (...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2652 | 2652 |
| 2653 // Since a constant pool was just emitted, move the check offset forward by | 2653 // Since a constant pool was just emitted, move the check offset forward by |
| 2654 // the standard interval. | 2654 // the standard interval. |
| 2655 next_buffer_check_ = pc_offset() + kCheckPoolInterval; | 2655 next_buffer_check_ = pc_offset() + kCheckPoolInterval; |
| 2656 } | 2656 } |
| 2657 | 2657 |
| 2658 | 2658 |
| 2659 } } // namespace v8::internal | 2659 } } // namespace v8::internal |
| 2660 | 2660 |
| 2661 #endif // V8_TARGET_ARCH_ARM | 2661 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |