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