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

Side by Side Diff: src/serialize.h

Issue 9537011: Merge r10809 into 3.7 branch (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.7/
Patch Set: Created 8 years, 9 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/platform-win32.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 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 static int SpaceOfObject(HeapObject* object); 556 static int SpaceOfObject(HeapObject* object);
557 // This just returns the space of the object. It will return LO_SPACE 557 // This just returns the space of the object. It will return LO_SPACE
558 // for all large objects since you can't check the type of the object 558 // for all large objects since you can't check the type of the object
559 // once the map has been used for the serialization address. 559 // once the map has been used for the serialization address.
560 static int SpaceOfAlreadySerializedObject(HeapObject* object); 560 static int SpaceOfAlreadySerializedObject(HeapObject* object);
561 int Allocate(int space, int size, bool* new_page_started); 561 int Allocate(int space, int size, bool* new_page_started);
562 int EncodeExternalReference(Address addr) { 562 int EncodeExternalReference(Address addr) {
563 return external_reference_encoder_->Encode(addr); 563 return external_reference_encoder_->Encode(addr);
564 } 564 }
565 565
566 int SpaceAreaSize(int space);
567
568 Isolate* isolate_;
566 // Keep track of the fullness of each space in order to generate 569 // Keep track of the fullness of each space in order to generate
567 // relative addresses for back references. Large objects are 570 // relative addresses for back references. Large objects are
568 // just numbered sequentially since relative addresses make no 571 // just numbered sequentially since relative addresses make no
569 // sense in large object space. 572 // sense in large object space.
570 int fullness_[LAST_SPACE + 1]; 573 int fullness_[LAST_SPACE + 1];
571 SnapshotByteSink* sink_; 574 SnapshotByteSink* sink_;
572 int current_root_index_; 575 int current_root_index_;
573 ExternalReferenceEncoder* external_reference_encoder_; 576 ExternalReferenceEncoder* external_reference_encoder_;
574 static bool serialization_enabled_; 577 static bool serialization_enabled_;
575 // Did we already make use of the fact that serialization was not enabled? 578 // Did we already make use of the fact that serialization was not enabled?
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 private: 649 private:
647 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { 650 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) {
648 return false; 651 return false;
649 } 652 }
650 }; 653 };
651 654
652 655
653 } } // namespace v8::internal 656 } } // namespace v8::internal
654 657
655 #endif // V8_SERIALIZE_H_ 658 #endif // V8_SERIALIZE_H_
OLDNEW
« no previous file with comments | « src/platform-win32.cc ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698