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 2711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2722 } | 2722 } |
2723 | 2723 |
2724 | 2724 |
2725 void Assembler::dd(uint32_t data) { | 2725 void Assembler::dd(uint32_t data) { |
2726 CheckBuffer(); | 2726 CheckBuffer(); |
2727 *reinterpret_cast<uint32_t*>(pc_) = data; | 2727 *reinterpret_cast<uint32_t*>(pc_) = data; |
2728 pc_ += sizeof(uint32_t); | 2728 pc_ += sizeof(uint32_t); |
2729 } | 2729 } |
2730 | 2730 |
2731 | 2731 |
| 2732 void Assembler::dq(uint64_t data) { |
| 2733 CheckBuffer(); |
| 2734 *reinterpret_cast<uint64_t*>(pc_) = data; |
| 2735 pc_ += sizeof(uint64_t); |
| 2736 } |
| 2737 |
| 2738 |
2732 void Assembler::dd(Label* label) { | 2739 void Assembler::dd(Label* label) { |
2733 CheckBuffer(); | 2740 CheckBuffer(); |
2734 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE); | 2741 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE); |
2735 uint32_t data; | 2742 uint32_t data; |
2736 if (label->is_bound()) { | 2743 if (label->is_bound()) { |
2737 data = reinterpret_cast<uint32_t>(buffer_ + label->pos()); | 2744 data = reinterpret_cast<uint32_t>(buffer_ + label->pos()); |
2738 } else { | 2745 } else { |
2739 data = jump_address(label); | 2746 data = jump_address(label); |
2740 internal_reference_positions_.insert(label->pos()); | 2747 internal_reference_positions_.insert(label->pos()); |
2741 } | 2748 } |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3018 } | 3025 } |
3019 patched = true; | 3026 patched = true; |
3020 } | 3027 } |
3021 | 3028 |
3022 if (patched) { | 3029 if (patched) { |
3023 CpuFeatures::FlushICache(pc + 2, sizeof(Address)); | 3030 CpuFeatures::FlushICache(pc + 2, sizeof(Address)); |
3024 } | 3031 } |
3025 } | 3032 } |
3026 | 3033 |
3027 | 3034 |
3028 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) { | |
3029 // No out-of-line constant pool support. | |
3030 DCHECK(!FLAG_enable_ool_constant_pool); | |
3031 return isolate->factory()->empty_constant_pool_array(); | |
3032 } | |
3033 | |
3034 | |
3035 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | |
3036 // No out-of-line constant pool support. | |
3037 DCHECK(!FLAG_enable_ool_constant_pool); | |
3038 return; | |
3039 } | |
3040 | |
3041 | |
3042 } // namespace internal | 3035 } // namespace internal |
3043 } // namespace v8 | 3036 } // namespace v8 |
3044 | 3037 |
3045 #endif // V8_TARGET_ARCH_MIPS | 3038 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |