| 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 if (mode == UPDATE_WRITE_BARRIER && host() != NULL) { | 200 if (mode == UPDATE_WRITE_BARRIER && host() != NULL) { |
| 201 // TODO(1550) We are passing NULL as a slot because cell can never be on | 201 // TODO(1550) We are passing NULL as a slot because cell can never be on |
| 202 // evacuation candidate. | 202 // evacuation candidate. |
| 203 host()->GetHeap()->incremental_marking()->RecordWrite( | 203 host()->GetHeap()->incremental_marking()->RecordWrite( |
| 204 host(), NULL, cell); | 204 host(), NULL, cell); |
| 205 } | 205 } |
| 206 } | 206 } |
| 207 | 207 |
| 208 | 208 |
| 209 static const int kNoCodeAgeSequenceLength = 3; | 209 static const int kNoCodeAgeSequenceLength = 3; |
| 210 static const int kPreAgeCodeNopType = lr.code(); |
| 211 static const int kNoAgeCodeNopType = ip.code(); |
| 212 |
| 210 | 213 |
| 211 Code* RelocInfo::code_age_stub() { | 214 Code* RelocInfo::code_age_stub() { |
| 212 ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); | 215 ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); |
| 213 return Code::GetCodeFromTargetAddress( | 216 return Code::GetCodeFromTargetAddress( |
| 214 Memory::Address_at(pc_ + Assembler::kInstrSize * | 217 Memory::Address_at(pc_ + Assembler::kInstrSize * |
| 215 (kNoCodeAgeSequenceLength - 1))); | 218 (kNoCodeAgeSequenceLength - 1))); |
| 216 } | 219 } |
| 217 | 220 |
| 218 | 221 |
| 219 void RelocInfo::set_code_age_stub(Code* stub) { | 222 void RelocInfo::set_code_age_stub(Code* stub) { |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 | 520 |
| 518 | 521 |
| 519 void Assembler::set_target_address_at(Address pc, Address target) { | 522 void Assembler::set_target_address_at(Address pc, Address target) { |
| 520 set_target_pointer_at(pc, target); | 523 set_target_pointer_at(pc, target); |
| 521 } | 524 } |
| 522 | 525 |
| 523 | 526 |
| 524 } } // namespace v8::internal | 527 } } // namespace v8::internal |
| 525 | 528 |
| 526 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ | 529 #endif // V8_ARM_ASSEMBLER_ARM_INL_H_ |
| OLD | NEW |