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 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1590 // Global inline caching age: it is incremented on some GCs after context | 1590 // Global inline caching age: it is incremented on some GCs after context |
1591 // disposal. We use it to flush inline caches. | 1591 // disposal. We use it to flush inline caches. |
1592 int global_ic_age() { | 1592 int global_ic_age() { |
1593 return global_ic_age_; | 1593 return global_ic_age_; |
1594 } | 1594 } |
1595 | 1595 |
1596 void AgeInlineCaches() { | 1596 void AgeInlineCaches() { |
1597 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax; | 1597 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax; |
1598 } | 1598 } |
1599 | 1599 |
| 1600 intptr_t amount_of_external_allocated_memory() { |
| 1601 return amount_of_external_allocated_memory_; |
| 1602 } |
| 1603 |
1600 // ObjectStats are kept in two arrays, counts and sizes. Related stats are | 1604 // ObjectStats are kept in two arrays, counts and sizes. Related stats are |
1601 // stored in a contiguous linear buffer. Stats groups are stored one after | 1605 // stored in a contiguous linear buffer. Stats groups are stored one after |
1602 // another. | 1606 // another. |
1603 enum { | 1607 enum { |
1604 FIRST_CODE_KIND_SUB_TYPE = LAST_TYPE + 1, | 1608 FIRST_CODE_KIND_SUB_TYPE = LAST_TYPE + 1, |
1605 FIRST_FIXED_ARRAY_SUB_TYPE = | 1609 FIRST_FIXED_ARRAY_SUB_TYPE = |
1606 FIRST_CODE_KIND_SUB_TYPE + Code::LAST_CODE_KIND + 1, | 1610 FIRST_CODE_KIND_SUB_TYPE + Code::LAST_CODE_KIND + 1, |
1607 OBJECT_STATS_COUNT = | 1611 OBJECT_STATS_COUNT = |
1608 FIRST_FIXED_ARRAY_SUB_TYPE + LAST_FIXED_ARRAY_SUB_TYPE + 1 | 1612 FIRST_FIXED_ARRAY_SUB_TYPE + LAST_FIXED_ARRAY_SUB_TYPE + 1 |
1609 }; | 1613 }; |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2768 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2772 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2769 | 2773 |
2770 private: | 2774 private: |
2771 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2775 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2772 }; | 2776 }; |
2773 #endif // DEBUG || LIVE_OBJECT_LIST | 2777 #endif // DEBUG || LIVE_OBJECT_LIST |
2774 | 2778 |
2775 } } // namespace v8::internal | 2779 } } // namespace v8::internal |
2776 | 2780 |
2777 #endif // V8_HEAP_H_ | 2781 #endif // V8_HEAP_H_ |
OLD | NEW |