OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 10304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10315 } | 10315 } |
10316 | 10316 |
10317 | 10317 |
10318 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) { | 10318 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) { |
10319 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); | 10319 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); |
10320 VisitPointer(rinfo->target_object_address()); | 10320 VisitPointer(rinfo->target_object_address()); |
10321 } | 10321 } |
10322 | 10322 |
10323 | 10323 |
10324 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) { | 10324 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) { |
10325 Address* p = rinfo->target_reference_address(); | 10325 Address p = rinfo->target_reference(); |
10326 VisitExternalReference(p); | 10326 VisitExternalReference(&p); |
10327 } | 10327 } |
10328 | 10328 |
10329 | 10329 |
10330 void Code::InvalidateRelocation() { | 10330 void Code::InvalidateRelocation() { |
10331 set_relocation_info(GetHeap()->empty_byte_array()); | 10331 set_relocation_info(GetHeap()->empty_byte_array()); |
10332 } | 10332 } |
10333 | 10333 |
10334 | 10334 |
10335 void Code::Relocate(intptr_t delta) { | 10335 void Code::Relocate(intptr_t delta) { |
10336 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) { | 10336 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) { |
(...skipping 6059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16396 #define ERROR_MESSAGES_TEXTS(C, T) T, | 16396 #define ERROR_MESSAGES_TEXTS(C, T) T, |
16397 static const char* error_messages_[] = { | 16397 static const char* error_messages_[] = { |
16398 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) | 16398 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) |
16399 }; | 16399 }; |
16400 #undef ERROR_MESSAGES_TEXTS | 16400 #undef ERROR_MESSAGES_TEXTS |
16401 return error_messages_[reason]; | 16401 return error_messages_[reason]; |
16402 } | 16402 } |
16403 | 16403 |
16404 | 16404 |
16405 } } // namespace v8::internal | 16405 } } // namespace v8::internal |
OLD | NEW |