OLD | NEW |
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 8708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8719 // on gc. It provides two ways for the gc to update instances, either | 8719 // on gc. It provides two ways for the gc to update instances, either |
8720 // iterating or updating after gc. | 8720 // iterating or updating after gc. |
8721 class Relocatable BASE_EMBEDDED { | 8721 class Relocatable BASE_EMBEDDED { |
8722 public: | 8722 public: |
8723 explicit inline Relocatable(Isolate* isolate); | 8723 explicit inline Relocatable(Isolate* isolate); |
8724 inline virtual ~Relocatable(); | 8724 inline virtual ~Relocatable(); |
8725 virtual void IterateInstance(ObjectVisitor* v) { } | 8725 virtual void IterateInstance(ObjectVisitor* v) { } |
8726 virtual void PostGarbageCollection() { } | 8726 virtual void PostGarbageCollection() { } |
8727 | 8727 |
8728 static void PostGarbageCollectionProcessing(Isolate* isolate); | 8728 static void PostGarbageCollectionProcessing(Isolate* isolate); |
8729 static int ArchiveSpacePerThread(Isolate* isolate); | 8729 static int ArchiveSpacePerThread(); |
8730 static char* ArchiveState(Isolate* isolate, char* to); | 8730 static char* ArchiveState(Isolate* isolate, char* to); |
8731 static char* RestoreState(Isolate* isolate, char* from); | 8731 static char* RestoreState(Isolate* isolate, char* from); |
8732 static void Iterate(Isolate* isolate, ObjectVisitor* v); | 8732 static void Iterate(Isolate* isolate, ObjectVisitor* v); |
8733 static void Iterate(ObjectVisitor* v, Relocatable* top); | 8733 static void Iterate(ObjectVisitor* v, Relocatable* top); |
8734 static char* Iterate(Isolate* isolate, ObjectVisitor* v, char* t); | 8734 static char* Iterate(ObjectVisitor* v, char* t); |
8735 | 8735 |
8736 private: | 8736 private: |
8737 Isolate* isolate_; | 8737 Isolate* isolate_; |
8738 Relocatable* prev_; | 8738 Relocatable* prev_; |
8739 }; | 8739 }; |
8740 | 8740 |
8741 | 8741 |
8742 // A flat string reader provides random access to the contents of a | 8742 // A flat string reader provides random access to the contents of a |
8743 // string independent of the character width of the string. The handle | 8743 // string independent of the character width of the string. The handle |
8744 // must be valid as long as the reader is being used. | 8744 // must be valid as long as the reader is being used. |
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10174 } else { | 10174 } else { |
10175 value &= ~(1 << bit_position); | 10175 value &= ~(1 << bit_position); |
10176 } | 10176 } |
10177 return value; | 10177 return value; |
10178 } | 10178 } |
10179 }; | 10179 }; |
10180 | 10180 |
10181 } } // namespace v8::internal | 10181 } } // namespace v8::internal |
10182 | 10182 |
10183 #endif // V8_OBJECTS_H_ | 10183 #endif // V8_OBJECTS_H_ |
OLD | NEW |