OLD | NEW |
1 | 1 |
2 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 2 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
3 // All Rights Reserved. | 3 // All Rights Reserved. |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // - Redistributions of source code must retain the above copyright notice, | 9 // - Redistributions of source code must retain the above copyright notice, |
10 // this list of conditions and the following disclaimer. | 10 // this list of conditions and the following disclaimer. |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 ICacheFlushMode icache_flush_mode) { | 206 ICacheFlushMode icache_flush_mode) { |
207 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 207 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
208 Assembler::set_target_address_at(isolate_, pc_, host_, | 208 Assembler::set_target_address_at(isolate_, pc_, host_, |
209 reinterpret_cast<Address>(target), | 209 reinterpret_cast<Address>(target), |
210 icache_flush_mode); | 210 icache_flush_mode); |
211 if (write_barrier_mode == UPDATE_WRITE_BARRIER && | 211 if (write_barrier_mode == UPDATE_WRITE_BARRIER && |
212 host() != NULL && | 212 host() != NULL && |
213 target->IsHeapObject()) { | 213 target->IsHeapObject()) { |
214 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( | 214 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( |
215 host(), this, HeapObject::cast(target)); | 215 host(), this, HeapObject::cast(target)); |
216 host()->GetHeap()->RecordWriteIntoCode(host(), this, target); | |
217 } | 216 } |
218 } | 217 } |
219 | 218 |
220 | 219 |
221 Address RelocInfo::target_external_reference() { | 220 Address RelocInfo::target_external_reference() { |
222 DCHECK(rmode_ == EXTERNAL_REFERENCE); | 221 DCHECK(rmode_ == EXTERNAL_REFERENCE); |
223 return Assembler::target_address_at(pc_, host_); | 222 return Assembler::target_address_at(pc_, host_); |
224 } | 223 } |
225 | 224 |
226 | 225 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 void Assembler::emit(uint64_t data) { | 475 void Assembler::emit(uint64_t data) { |
477 CheckForEmitInForbiddenSlot(); | 476 CheckForEmitInForbiddenSlot(); |
478 EmitHelper(data); | 477 EmitHelper(data); |
479 } | 478 } |
480 | 479 |
481 | 480 |
482 } // namespace internal | 481 } // namespace internal |
483 } // namespace v8 | 482 } // namespace v8 |
484 | 483 |
485 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 484 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
OLD | NEW |