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 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 // ensure the precondition that the object is (a) a heap object and (b) in | 1325 // ensure the precondition that the object is (a) a heap object and (b) in |
1326 // the heap's from space. | 1326 // the heap's from space. |
1327 static inline void ScavengePointer(HeapObject** p); | 1327 static inline void ScavengePointer(HeapObject** p); |
1328 static inline void ScavengeObject(HeapObject** p, HeapObject* object); | 1328 static inline void ScavengeObject(HeapObject** p, HeapObject* object); |
1329 | 1329 |
1330 // Commits from space if it is uncommitted. | 1330 // Commits from space if it is uncommitted. |
1331 void EnsureFromSpaceIsCommitted(); | 1331 void EnsureFromSpaceIsCommitted(); |
1332 | 1332 |
1333 // Support for partial snapshots. After calling this we have a linear | 1333 // Support for partial snapshots. After calling this we have a linear |
1334 // space to write objects in each space. | 1334 // space to write objects in each space. |
1335 void ReserveSpace(intptr_t *sizes, Address* addresses); | 1335 void ReserveSpace(int *sizes, Address* addresses); |
1336 | 1336 |
1337 // | 1337 // |
1338 // Support for the API. | 1338 // Support for the API. |
1339 // | 1339 // |
1340 | 1340 |
1341 bool CreateApiObjects(); | 1341 bool CreateApiObjects(); |
1342 | 1342 |
1343 // Attempt to find the number in a small cache. If we finds it, return | 1343 // Attempt to find the number in a small cache. If we finds it, return |
1344 // the string representation of the number. Otherwise return undefined. | 1344 // the string representation of the number. Otherwise return undefined. |
1345 Object* GetNumberStringCache(Object* number); | 1345 Object* GetNumberStringCache(Object* number); |
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2800 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2800 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2801 | 2801 |
2802 private: | 2802 private: |
2803 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2803 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2804 }; | 2804 }; |
2805 #endif // DEBUG || LIVE_OBJECT_LIST | 2805 #endif // DEBUG || LIVE_OBJECT_LIST |
2806 | 2806 |
2807 } } // namespace v8::internal | 2807 } } // namespace v8::internal |
2808 | 2808 |
2809 #endif // V8_HEAP_H_ | 2809 #endif // V8_HEAP_H_ |
OLD | NEW |