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 2891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2902 } | 2902 } |
2903 | 2903 |
2904 | 2904 |
2905 void Assembler::dd(uint32_t data) { | 2905 void Assembler::dd(uint32_t data) { |
2906 CheckBuffer(); | 2906 CheckBuffer(); |
2907 *reinterpret_cast<uint32_t*>(pc_) = data; | 2907 *reinterpret_cast<uint32_t*>(pc_) = data; |
2908 pc_ += sizeof(uint32_t); | 2908 pc_ += sizeof(uint32_t); |
2909 } | 2909 } |
2910 | 2910 |
2911 | 2911 |
2912 void Assembler::dq(uint64_t data) { | |
2913 CheckBuffer(); | |
2914 *reinterpret_cast<uint64_t*>(pc_) = data; | |
2915 pc_ += sizeof(uint64_t); | |
2916 } | |
2917 | |
2918 | |
2919 void Assembler::dd(Label* label) { | 2912 void Assembler::dd(Label* label) { |
2920 CheckBuffer(); | 2913 CheckBuffer(); |
2921 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE); | 2914 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE); |
2922 uint64_t data; | 2915 uint64_t data; |
2923 if (label->is_bound()) { | 2916 if (label->is_bound()) { |
2924 data = reinterpret_cast<uint64_t>(buffer_ + label->pos()); | 2917 data = reinterpret_cast<uint64_t>(buffer_ + label->pos()); |
2925 } else { | 2918 } else { |
2926 data = jump_address(label); | 2919 data = jump_address(label); |
2927 internal_reference_positions_.insert(label->pos()); | 2920 internal_reference_positions_.insert(label->pos()); |
2928 } | 2921 } |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3117 | ((itarget >> 16) & kImm16Mask); | 3110 | ((itarget >> 16) & kImm16Mask); |
3118 *(p + 3) = ORI | (rt_code << kRsShift) | (rt_code << kRtShift) | 3111 *(p + 3) = ORI | (rt_code << kRsShift) | (rt_code << kRtShift) |
3119 | (itarget & kImm16Mask); | 3112 | (itarget & kImm16Mask); |
3120 | 3113 |
3121 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3114 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3122 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize); | 3115 CpuFeatures::FlushICache(pc, 4 * Assembler::kInstrSize); |
3123 } | 3116 } |
3124 } | 3117 } |
3125 | 3118 |
3126 | 3119 |
| 3120 Handle<ConstantPoolArray> Assembler::NewConstantPool(Isolate* isolate) { |
| 3121 // No out-of-line constant pool support. |
| 3122 DCHECK(!FLAG_enable_ool_constant_pool); |
| 3123 return isolate->factory()->empty_constant_pool_array(); |
| 3124 } |
| 3125 |
| 3126 |
| 3127 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
| 3128 // No out-of-line constant pool support. |
| 3129 DCHECK(!FLAG_enable_ool_constant_pool); |
| 3130 return; |
| 3131 } |
| 3132 |
| 3133 |
3127 } // namespace internal | 3134 } // namespace internal |
3128 } // namespace v8 | 3135 } // namespace v8 |
3129 | 3136 |
3130 #endif // V8_TARGET_ARCH_MIPS64 | 3137 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |