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 1471 matching lines...) Loading... |
1482 // mark or if we've already filled the bottom 1/16th of the to space, | 1482 // mark or if we've already filled the bottom 1/16th of the to space, |
1483 // we try to promote this object. | 1483 // we try to promote this object. |
1484 inline bool ShouldBePromoted(Address old_address, int object_size); | 1484 inline bool ShouldBePromoted(Address old_address, int object_size); |
1485 | 1485 |
1486 int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } | 1486 int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } |
1487 | 1487 |
1488 void ClearJSFunctionResultCaches(); | 1488 void ClearJSFunctionResultCaches(); |
1489 | 1489 |
1490 void ClearNormalizedMapCaches(); | 1490 void ClearNormalizedMapCaches(); |
1491 | 1491 |
1492 // Clears the cache of ICs related to this map. | |
1493 void ClearCacheOnMap(Map* map) { | |
1494 if (FLAG_cleanup_code_caches_at_gc) { | |
1495 map->ClearCodeCache(this); | |
1496 } | |
1497 } | |
1498 | |
1499 GCTracer* tracer() { return tracer_; } | 1492 GCTracer* tracer() { return tracer_; } |
1500 | 1493 |
1501 // Returns the size of objects residing in non new spaces. | 1494 // Returns the size of objects residing in non new spaces. |
1502 intptr_t PromotedSpaceSizeOfObjects(); | 1495 intptr_t PromotedSpaceSizeOfObjects(); |
1503 | 1496 |
1504 double total_regexp_code_generated() { return total_regexp_code_generated_; } | 1497 double total_regexp_code_generated() { return total_regexp_code_generated_; } |
1505 void IncreaseTotalRegexpCodeGenerated(int size) { | 1498 void IncreaseTotalRegexpCodeGenerated(int size) { |
1506 total_regexp_code_generated_ += size; | 1499 total_regexp_code_generated_ += size; |
1507 } | 1500 } |
1508 | 1501 |
(...skipping 1289 matching lines...) Loading... |
2798 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2791 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2799 | 2792 |
2800 private: | 2793 private: |
2801 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2794 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2802 }; | 2795 }; |
2803 #endif // DEBUG || LIVE_OBJECT_LIST | 2796 #endif // DEBUG || LIVE_OBJECT_LIST |
2804 | 2797 |
2805 } } // namespace v8::internal | 2798 } } // namespace v8::internal |
2806 | 2799 |
2807 #endif // V8_HEAP_H_ | 2800 #endif // V8_HEAP_H_ |
OLD | NEW |