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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 ICacheFlushMode icache_flush_mode) { | 218 ICacheFlushMode icache_flush_mode) { |
219 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 219 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
220 Assembler::set_target_address_at(isolate_, pc_, host_, | 220 Assembler::set_target_address_at(isolate_, pc_, host_, |
221 reinterpret_cast<Address>(target), | 221 reinterpret_cast<Address>(target), |
222 icache_flush_mode); | 222 icache_flush_mode); |
223 if (write_barrier_mode == UPDATE_WRITE_BARRIER && | 223 if (write_barrier_mode == UPDATE_WRITE_BARRIER && |
224 host() != NULL && | 224 host() != NULL && |
225 target->IsHeapObject()) { | 225 target->IsHeapObject()) { |
226 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( | 226 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( |
227 host(), this, HeapObject::cast(target)); | 227 host(), this, HeapObject::cast(target)); |
228 host()->GetHeap()->RecordWriteIntoCode(host(), this, target); | |
229 } | 228 } |
230 } | 229 } |
231 | 230 |
232 | 231 |
233 Address RelocInfo::target_external_reference() { | 232 Address RelocInfo::target_external_reference() { |
234 DCHECK(rmode_ == EXTERNAL_REFERENCE); | 233 DCHECK(rmode_ == EXTERNAL_REFERENCE); |
235 return Assembler::target_address_at(pc_, host_); | 234 return Assembler::target_address_at(pc_, host_); |
236 } | 235 } |
237 | 236 |
238 | 237 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 CheckBuffer(); | 487 CheckBuffer(); |
489 } | 488 } |
490 EmitHelper(x, is_compact_branch); | 489 EmitHelper(x, is_compact_branch); |
491 } | 490 } |
492 | 491 |
493 | 492 |
494 } // namespace internal | 493 } // namespace internal |
495 } // namespace v8 | 494 } // namespace v8 |
496 | 495 |
497 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ | 496 #endif // V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
OLD | NEW |