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 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2489 inline intptr_t Available(); | 2489 inline intptr_t Available(); |
2490 | 2490 |
2491 virtual intptr_t Size() { | 2491 virtual intptr_t Size() { |
2492 return size_; | 2492 return size_; |
2493 } | 2493 } |
2494 | 2494 |
2495 virtual intptr_t SizeOfObjects() { | 2495 virtual intptr_t SizeOfObjects() { |
2496 return objects_size_; | 2496 return objects_size_; |
2497 } | 2497 } |
2498 | 2498 |
| 2499 intptr_t CommittedMemory() { |
| 2500 return Size(); |
| 2501 } |
| 2502 |
2499 int PageCount() { | 2503 int PageCount() { |
2500 return page_count_; | 2504 return page_count_; |
2501 } | 2505 } |
2502 | 2506 |
2503 // Finds an object for a given address, returns Failure::Exception() | 2507 // Finds an object for a given address, returns Failure::Exception() |
2504 // if it is not found. The function iterates through all objects in this | 2508 // if it is not found. The function iterates through all objects in this |
2505 // space, may be slow. | 2509 // space, may be slow. |
2506 MaybeObject* FindObject(Address a); | 2510 MaybeObject* FindObject(Address a); |
2507 | 2511 |
2508 // Finds a large object page containing the given address, returns NULL | 2512 // Finds a large object page containing the given address, returns NULL |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2641 } | 2645 } |
2642 // Must be small, since an iteration is used for lookup. | 2646 // Must be small, since an iteration is used for lookup. |
2643 static const int kMaxComments = 64; | 2647 static const int kMaxComments = 64; |
2644 }; | 2648 }; |
2645 #endif | 2649 #endif |
2646 | 2650 |
2647 | 2651 |
2648 } } // namespace v8::internal | 2652 } } // namespace v8::internal |
2649 | 2653 |
2650 #endif // V8_SPACES_H_ | 2654 #endif // V8_SPACES_H_ |
OLD | NEW |