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

Side by Side Diff: src/serialize.h

Issue 249283002: Implement --omit, --raw_[context_]file=... for mksnapshot tool. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address feedback Created 6 years, 8 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/mksnapshot.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 class CodeAddressMap; 457 class CodeAddressMap;
458 458
459 // There can be only one serializer per V8 process. 459 // There can be only one serializer per V8 process.
460 class Serializer : public SerializerDeserializer { 460 class Serializer : public SerializerDeserializer {
461 public: 461 public:
462 Serializer(Isolate* isolate, SnapshotByteSink* sink); 462 Serializer(Isolate* isolate, SnapshotByteSink* sink);
463 ~Serializer(); 463 ~Serializer();
464 void VisitPointers(Object** start, Object** end); 464 void VisitPointers(Object** start, Object** end);
465 // You can call this after serialization to find out how much space was used 465 // You can call this after serialization to find out how much space was used
466 // in each space. 466 // in each space.
467 int CurrentAllocationAddress(int space) { 467 int CurrentAllocationAddress(int space) const {
468 ASSERT(space < kNumberOfSpaces); 468 ASSERT(space < kNumberOfSpaces);
469 return fullness_[space]; 469 return fullness_[space];
470 } 470 }
471 471
472 Isolate* isolate() const { return isolate_; } 472 Isolate* isolate() const { return isolate_; }
473 static void Enable(Isolate* isolate); 473 static void Enable(Isolate* isolate);
474 static void Disable(); 474 static void Disable();
475 475
476 // Call this when you have made use of the fact that there is no serialization 476 // Call this when you have made use of the fact that there is no serialization
477 // going on. 477 // going on.
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 private: 657 private:
658 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { 658 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) {
659 return false; 659 return false;
660 } 660 }
661 }; 661 };
662 662
663 663
664 } } // namespace v8::internal 664 } } // namespace v8::internal
665 665
666 #endif // V8_SERIALIZE_H_ 666 #endif // V8_SERIALIZE_H_
OLDNEW
« no previous file with comments | « src/mksnapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698