| 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 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1776 int global_ic_age() { | 1776 int global_ic_age() { |
| 1777 return global_ic_age_; | 1777 return global_ic_age_; |
| 1778 } | 1778 } |
| 1779 | 1779 |
| 1780 void AgeInlineCaches() { | 1780 void AgeInlineCaches() { |
| 1781 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax; | 1781 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax; |
| 1782 } | 1782 } |
| 1783 | 1783 |
| 1784 bool flush_monomorphic_ics() { return flush_monomorphic_ics_; } | 1784 bool flush_monomorphic_ics() { return flush_monomorphic_ics_; } |
| 1785 | 1785 |
| 1786 intptr_t amount_of_external_allocated_memory() { | 1786 int64_t amount_of_external_allocated_memory() { |
| 1787 return amount_of_external_allocated_memory_; | 1787 return amount_of_external_allocated_memory_; |
| 1788 } | 1788 } |
| 1789 | 1789 |
| 1790 // ObjectStats are kept in two arrays, counts and sizes. Related stats are | 1790 // ObjectStats are kept in two arrays, counts and sizes. Related stats are |
| 1791 // stored in a contiguous linear buffer. Stats groups are stored one after | 1791 // stored in a contiguous linear buffer. Stats groups are stored one after |
| 1792 // another. | 1792 // another. |
| 1793 enum { | 1793 enum { |
| 1794 FIRST_CODE_KIND_SUB_TYPE = LAST_TYPE + 1, | 1794 FIRST_CODE_KIND_SUB_TYPE = LAST_TYPE + 1, |
| 1795 FIRST_FIXED_ARRAY_SUB_TYPE = | 1795 FIRST_FIXED_ARRAY_SUB_TYPE = |
| 1796 FIRST_CODE_KIND_SUB_TYPE + Code::NUMBER_OF_KINDS, | 1796 FIRST_CODE_KIND_SUB_TYPE + Code::NUMBER_OF_KINDS, |
| (...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3084 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3084 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3085 | 3085 |
| 3086 private: | 3086 private: |
| 3087 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3087 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3088 }; | 3088 }; |
| 3089 #endif // DEBUG | 3089 #endif // DEBUG |
| 3090 | 3090 |
| 3091 } } // namespace v8::internal | 3091 } } // namespace v8::internal |
| 3092 | 3092 |
| 3093 #endif // V8_HEAP_H_ | 3093 #endif // V8_HEAP_H_ |
| OLD | NEW |