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

Side by Side Diff: src/serialize.h

Issue 3197010: Version 2.3.10... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 10 years, 4 months 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/runtime.cc ('k') | src/serialize.cc » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 WhereToPoint where_to_point) 441 WhereToPoint where_to_point)
442 : serializer_(serializer), 442 : serializer_(serializer),
443 object_(HeapObject::cast(o)), 443 object_(HeapObject::cast(o)),
444 sink_(sink), 444 sink_(sink),
445 reference_representation_(how_to_code + where_to_point), 445 reference_representation_(how_to_code + where_to_point),
446 bytes_processed_so_far_(0) { } 446 bytes_processed_so_far_(0) { }
447 void Serialize(); 447 void Serialize();
448 void VisitPointers(Object** start, Object** end); 448 void VisitPointers(Object** start, Object** end);
449 void VisitExternalReferences(Address* start, Address* end); 449 void VisitExternalReferences(Address* start, Address* end);
450 void VisitCodeTarget(RelocInfo* target); 450 void VisitCodeTarget(RelocInfo* target);
451 void VisitCodeEntry(Address entry_address);
451 void VisitRuntimeEntry(RelocInfo* reloc); 452 void VisitRuntimeEntry(RelocInfo* reloc);
452 // Used for seralizing the external strings that hold the natives source. 453 // Used for seralizing the external strings that hold the natives source.
453 void VisitExternalAsciiString( 454 void VisitExternalAsciiString(
454 v8::String::ExternalAsciiStringResource** resource); 455 v8::String::ExternalAsciiStringResource** resource);
455 // We can't serialize a heap with external two byte strings. 456 // We can't serialize a heap with external two byte strings.
456 void VisitExternalTwoByteString( 457 void VisitExternalTwoByteString(
457 v8::String::ExternalStringResource** resource) { 458 v8::String::ExternalStringResource** resource) {
458 UNREACHABLE(); 459 UNREACHABLE();
459 } 460 }
460 461
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 virtual int RootIndex(HeapObject* o) { return kInvalidRootIndex; } 574 virtual int RootIndex(HeapObject* o) { return kInvalidRootIndex; }
574 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { 575 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) {
575 return false; 576 return false;
576 } 577 }
577 }; 578 };
578 579
579 580
580 } } // namespace v8::internal 581 } } // namespace v8::internal
581 582
582 #endif // V8_SERIALIZE_H_ 583 #endif // V8_SERIALIZE_H_
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698