Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Side by Side Diff: src/objects.cc

Issue 36853003: Simplify ObjectVisitor for external references. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects.h ('k') | src/serialize.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 10309 matching lines...) Expand 10 before | Expand all | Expand 10 after
10320 10320
10321 10321
10322 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) { 10322 void ObjectVisitor::VisitEmbeddedPointer(RelocInfo* rinfo) {
10323 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT); 10323 ASSERT(rinfo->rmode() == RelocInfo::EMBEDDED_OBJECT);
10324 VisitPointer(rinfo->target_object_address()); 10324 VisitPointer(rinfo->target_object_address());
10325 } 10325 }
10326 10326
10327 10327
10328 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) { 10328 void ObjectVisitor::VisitExternalReference(RelocInfo* rinfo) {
10329 Address* p = rinfo->target_reference_address(); 10329 Address* p = rinfo->target_reference_address();
10330 VisitExternalReferences(p, p + 1); 10330 VisitExternalReference(p);
10331 } 10331 }
10332 10332
10333 10333
10334 void Code::InvalidateRelocation() { 10334 void Code::InvalidateRelocation() {
10335 set_relocation_info(GetHeap()->empty_byte_array()); 10335 set_relocation_info(GetHeap()->empty_byte_array());
10336 } 10336 }
10337 10337
10338 10338
10339 void Code::Relocate(intptr_t delta) { 10339 void Code::Relocate(intptr_t delta) {
10340 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) { 10340 for (RelocIterator it(this, RelocInfo::kApplyMask); !it.done(); it.next()) {
(...skipping 6045 matching lines...) Expand 10 before | Expand all | Expand 10 after
16386 #define ERROR_MESSAGES_TEXTS(C, T) T, 16386 #define ERROR_MESSAGES_TEXTS(C, T) T,
16387 static const char* error_messages_[] = { 16387 static const char* error_messages_[] = {
16388 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16388 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16389 }; 16389 };
16390 #undef ERROR_MESSAGES_TEXTS 16390 #undef ERROR_MESSAGES_TEXTS
16391 return error_messages_[reason]; 16391 return error_messages_[reason];
16392 } 16392 }
16393 16393
16394 16394
16395 } } // namespace v8::internal 16395 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698