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 10 matching lines...) Expand all Loading... |
21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 21 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 22 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 23 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_OBJECTS_H_ | 28 #ifndef V8_OBJECTS_H_ |
29 #define V8_OBJECTS_H_ | 29 #define V8_OBJECTS_H_ |
30 | 30 |
| 31 #include "allocation.h" |
31 #include "builtins.h" | 32 #include "builtins.h" |
32 #include "smart-pointer.h" | 33 #include "smart-pointer.h" |
33 #include "unicode-inl.h" | 34 #include "unicode-inl.h" |
34 #if V8_TARGET_ARCH_ARM | 35 #if V8_TARGET_ARCH_ARM |
35 #include "arm/constants-arm.h" | 36 #include "arm/constants-arm.h" |
36 #elif V8_TARGET_ARCH_MIPS | 37 #elif V8_TARGET_ARCH_MIPS |
37 #include "mips/constants-mips.h" | 38 #include "mips/constants-mips.h" |
38 #endif | 39 #endif |
39 | 40 |
40 // | 41 // |
(...skipping 5876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5917 // iterating or updating after gc. | 5918 // iterating or updating after gc. |
5918 class Relocatable BASE_EMBEDDED { | 5919 class Relocatable BASE_EMBEDDED { |
5919 public: | 5920 public: |
5920 explicit inline Relocatable(Isolate* isolate); | 5921 explicit inline Relocatable(Isolate* isolate); |
5921 inline virtual ~Relocatable(); | 5922 inline virtual ~Relocatable(); |
5922 virtual void IterateInstance(ObjectVisitor* v) { } | 5923 virtual void IterateInstance(ObjectVisitor* v) { } |
5923 virtual void PostGarbageCollection() { } | 5924 virtual void PostGarbageCollection() { } |
5924 | 5925 |
5925 static void PostGarbageCollectionProcessing(); | 5926 static void PostGarbageCollectionProcessing(); |
5926 static int ArchiveSpacePerThread(); | 5927 static int ArchiveSpacePerThread(); |
5927 static char* ArchiveState(char* to); | 5928 static char* ArchiveState(Isolate* isolate, char* to); |
5928 static char* RestoreState(char* from); | 5929 static char* RestoreState(Isolate* isolate, char* from); |
5929 static void Iterate(ObjectVisitor* v); | 5930 static void Iterate(ObjectVisitor* v); |
5930 static void Iterate(ObjectVisitor* v, Relocatable* top); | 5931 static void Iterate(ObjectVisitor* v, Relocatable* top); |
5931 static char* Iterate(ObjectVisitor* v, char* t); | 5932 static char* Iterate(ObjectVisitor* v, char* t); |
5932 private: | 5933 private: |
5933 Isolate* isolate_; | 5934 Isolate* isolate_; |
5934 Relocatable* prev_; | 5935 Relocatable* prev_; |
5935 }; | 5936 }; |
5936 | 5937 |
5937 | 5938 |
5938 // A flat string reader provides random access to the contents of a | 5939 // 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 { | 6715 } else { |
6715 value &= ~(1 << bit_position); | 6716 value &= ~(1 << bit_position); |
6716 } | 6717 } |
6717 return value; | 6718 return value; |
6718 } | 6719 } |
6719 }; | 6720 }; |
6720 | 6721 |
6721 } } // namespace v8::internal | 6722 } } // namespace v8::internal |
6722 | 6723 |
6723 #endif // V8_OBJECTS_H_ | 6724 #endif // V8_OBJECTS_H_ |
OLD | NEW |