OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 5906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5917 // iterating or updating after gc. | 5917 // iterating or updating after gc. |
5918 class Relocatable BASE_EMBEDDED { | 5918 class Relocatable BASE_EMBEDDED { |
5919 public: | 5919 public: |
5920 explicit inline Relocatable(Isolate* isolate); | 5920 explicit inline Relocatable(Isolate* isolate); |
5921 inline virtual ~Relocatable(); | 5921 inline virtual ~Relocatable(); |
5922 virtual void IterateInstance(ObjectVisitor* v) { } | 5922 virtual void IterateInstance(ObjectVisitor* v) { } |
5923 virtual void PostGarbageCollection() { } | 5923 virtual void PostGarbageCollection() { } |
5924 | 5924 |
5925 static void PostGarbageCollectionProcessing(); | 5925 static void PostGarbageCollectionProcessing(); |
5926 static int ArchiveSpacePerThread(); | 5926 static int ArchiveSpacePerThread(); |
5927 static char* ArchiveState(char* to); | 5927 static char* ArchiveState(Isolate* isolate, char* to); |
5928 static char* RestoreState(char* from); | 5928 static char* RestoreState(Isolate* isolate, char* from); |
5929 static void Iterate(ObjectVisitor* v); | 5929 static void Iterate(ObjectVisitor* v); |
5930 static void Iterate(ObjectVisitor* v, Relocatable* top); | 5930 static void Iterate(ObjectVisitor* v, Relocatable* top); |
5931 static char* Iterate(ObjectVisitor* v, char* t); | 5931 static char* Iterate(ObjectVisitor* v, char* t); |
5932 private: | 5932 private: |
5933 Isolate* isolate_; | 5933 Isolate* isolate_; |
5934 Relocatable* prev_; | 5934 Relocatable* prev_; |
5935 }; | 5935 }; |
5936 | 5936 |
5937 | 5937 |
5938 // A flat string reader provides random access to the contents of a | 5938 // A flat string reader provides random access to the contents of a |
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6714 } else { | 6714 } else { |
6715 value &= ~(1 << bit_position); | 6715 value &= ~(1 << bit_position); |
6716 } | 6716 } |
6717 return value; | 6717 return value; |
6718 } | 6718 } |
6719 }; | 6719 }; |
6720 | 6720 |
6721 } } // namespace v8::internal | 6721 } } // namespace v8::internal |
6722 | 6722 |
6723 #endif // V8_OBJECTS_H_ | 6723 #endif // V8_OBJECTS_H_ |
OLD | NEW |