| 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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 | 760 |
| 761 // Allocates an empty TypeFeedbackInfo. | 761 // Allocates an empty TypeFeedbackInfo. |
| 762 MUST_USE_RESULT MaybeObject* AllocateTypeFeedbackInfo(); | 762 MUST_USE_RESULT MaybeObject* AllocateTypeFeedbackInfo(); |
| 763 | 763 |
| 764 // Allocates an AliasedArgumentsEntry. | 764 // Allocates an AliasedArgumentsEntry. |
| 765 MUST_USE_RESULT MaybeObject* AllocateAliasedArgumentsEntry(int slot); | 765 MUST_USE_RESULT MaybeObject* AllocateAliasedArgumentsEntry(int slot); |
| 766 | 766 |
| 767 // Clear the Instanceof cache (used when a prototype changes). | 767 // Clear the Instanceof cache (used when a prototype changes). |
| 768 inline void ClearInstanceofCache(); | 768 inline void ClearInstanceofCache(); |
| 769 | 769 |
| 770 // Iterates the whole code space to clear all ICs of the given kind. |
| 771 void ClearAllICsByKind(Code::Kind kind); |
| 772 |
| 770 // For use during bootup. | 773 // For use during bootup. |
| 771 void RepairFreeListsAfterBoot(); | 774 void RepairFreeListsAfterBoot(); |
| 772 | 775 |
| 773 // Allocates and fully initializes a String. There are two String | 776 // Allocates and fully initializes a String. There are two String |
| 774 // encodings: ASCII and two byte. One should choose between the three string | 777 // encodings: ASCII and two byte. One should choose between the three string |
| 775 // allocation functions based on the encoding of the string buffer used to | 778 // allocation functions based on the encoding of the string buffer used to |
| 776 // initialized the string. | 779 // initialized the string. |
| 777 // - ...FromAscii initializes the string from a buffer that is ASCII | 780 // - ...FromAscii initializes the string from a buffer that is ASCII |
| 778 // encoded (it does not check that the buffer is ASCII encoded) and the | 781 // encoded (it does not check that the buffer is ASCII encoded) and the |
| 779 // result will be ASCII encoded. | 782 // result will be ASCII encoded. |
| (...skipping 2290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3070 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3073 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
| 3071 | 3074 |
| 3072 private: | 3075 private: |
| 3073 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3076 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3074 }; | 3077 }; |
| 3075 #endif // DEBUG | 3078 #endif // DEBUG |
| 3076 | 3079 |
| 3077 } } // namespace v8::internal | 3080 } } // namespace v8::internal |
| 3078 | 3081 |
| 3079 #endif // V8_HEAP_H_ | 3082 #endif // V8_HEAP_H_ |
| OLD | NEW |