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 5840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5851 // iterating or updating after gc. | 5851 // iterating or updating after gc. |
5852 class Relocatable BASE_EMBEDDED { | 5852 class Relocatable BASE_EMBEDDED { |
5853 public: | 5853 public: |
5854 explicit inline Relocatable(Isolate* isolate); | 5854 explicit inline Relocatable(Isolate* isolate); |
5855 inline virtual ~Relocatable(); | 5855 inline virtual ~Relocatable(); |
5856 virtual void IterateInstance(ObjectVisitor* v) { } | 5856 virtual void IterateInstance(ObjectVisitor* v) { } |
5857 virtual void PostGarbageCollection() { } | 5857 virtual void PostGarbageCollection() { } |
5858 | 5858 |
5859 static void PostGarbageCollectionProcessing(); | 5859 static void PostGarbageCollectionProcessing(); |
5860 static int ArchiveSpacePerThread(); | 5860 static int ArchiveSpacePerThread(); |
5861 static char* ArchiveState(char* to); | 5861 static char* ArchiveState(Isolate* isolate, char* to); |
5862 static char* RestoreState(char* from); | 5862 static char* RestoreState(Isolate* isolate, char* from); |
5863 static void Iterate(ObjectVisitor* v); | 5863 static void Iterate(ObjectVisitor* v); |
5864 static void Iterate(ObjectVisitor* v, Relocatable* top); | 5864 static void Iterate(ObjectVisitor* v, Relocatable* top); |
5865 static char* Iterate(ObjectVisitor* v, char* t); | 5865 static char* Iterate(ObjectVisitor* v, char* t); |
5866 private: | 5866 private: |
5867 Isolate* isolate_; | 5867 Isolate* isolate_; |
5868 Relocatable* prev_; | 5868 Relocatable* prev_; |
5869 }; | 5869 }; |
5870 | 5870 |
5871 | 5871 |
5872 // A flat string reader provides random access to the contents of a | 5872 // 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... |
6648 } else { | 6648 } else { |
6649 value &= ~(1 << bit_position); | 6649 value &= ~(1 << bit_position); |
6650 } | 6650 } |
6651 return value; | 6651 return value; |
6652 } | 6652 } |
6653 }; | 6653 }; |
6654 | 6654 |
6655 } } // namespace v8::internal | 6655 } } // namespace v8::internal |
6656 | 6656 |
6657 #endif // V8_OBJECTS_H_ | 6657 #endif // V8_OBJECTS_H_ |
OLD | NEW |