OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 8516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8527 VisitPointer(&stub); | 8527 VisitPointer(&stub); |
8528 } | 8528 } |
8529 } | 8529 } |
8530 | 8530 |
8531 | 8531 |
8532 void ObjectVisitor::VisitCodeEntry(Address entry_address) { | 8532 void ObjectVisitor::VisitCodeEntry(Address entry_address) { |
8533 Object* code = Code::GetObjectFromEntryAddress(entry_address); | 8533 Object* code = Code::GetObjectFromEntryAddress(entry_address); |
8534 Object* old_code = code; | 8534 Object* old_code = code; |
8535 VisitPointer(&code); | 8535 VisitPointer(&code); |
8536 if (code != old_code) { | 8536 if (code != old_code) { |
| 8537 // TODO(mstarzinger): Active in release mode to flush out problems. |
| 8538 // Should be turned back into an ASSERT or removed completely. |
| 8539 Page* target_page = Page::FromAddress(reinterpret_cast<Address>(code)); |
| 8540 CHECK(!target_page->IsEvacuationCandidate()); |
8537 Memory::Address_at(entry_address) = reinterpret_cast<Code*>(code)->entry(); | 8541 Memory::Address_at(entry_address) = reinterpret_cast<Code*>(code)->entry(); |
8538 } | 8542 } |
8539 } | 8543 } |
8540 | 8544 |
8541 | 8545 |
8542 void ObjectVisitor::VisitGlobalPropertyCell(RelocInfo* rinfo) { | 8546 void ObjectVisitor::VisitGlobalPropertyCell(RelocInfo* rinfo) { |
8543 ASSERT(rinfo->rmode() == RelocInfo::GLOBAL_PROPERTY_CELL); | 8547 ASSERT(rinfo->rmode() == RelocInfo::GLOBAL_PROPERTY_CELL); |
8544 Object* cell = rinfo->target_cell(); | 8548 Object* cell = rinfo->target_cell(); |
8545 Object* old_cell = cell; | 8549 Object* old_cell = cell; |
8546 VisitPointer(&cell); | 8550 VisitPointer(&cell); |
(...skipping 5308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13855 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13859 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
13856 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13860 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
13857 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13861 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
13858 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13862 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
13859 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13863 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
13860 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13864 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
13861 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13865 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
13862 } | 13866 } |
13863 | 13867 |
13864 } } // namespace v8::internal | 13868 } } // namespace v8::internal |
OLD | NEW |