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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 | 633 |
634 // Allocates a serialized scope info. | 634 // Allocates a serialized scope info. |
635 MUST_USE_RESULT MaybeObject* AllocateScopeInfo(int length); | 635 MUST_USE_RESULT MaybeObject* AllocateScopeInfo(int length); |
636 | 636 |
637 // Allocates an empty PolymorphicCodeCache. | 637 // Allocates an empty PolymorphicCodeCache. |
638 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); | 638 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); |
639 | 639 |
640 // Allocates a pre-tenured empty AccessorPair. | 640 // Allocates a pre-tenured empty AccessorPair. |
641 MUST_USE_RESULT MaybeObject* AllocateAccessorPair(); | 641 MUST_USE_RESULT MaybeObject* AllocateAccessorPair(); |
642 | 642 |
| 643 // Allocates an empty TypeFeedbackInfo. |
| 644 MUST_USE_RESULT MaybeObject* AllocateTypeFeedbackInfo(); |
| 645 |
643 // Clear the Instanceof cache (used when a prototype changes). | 646 // Clear the Instanceof cache (used when a prototype changes). |
644 inline void ClearInstanceofCache(); | 647 inline void ClearInstanceofCache(); |
645 | 648 |
646 // Allocates and fully initializes a String. There are two String | 649 // Allocates and fully initializes a String. There are two String |
647 // encodings: ASCII and two byte. One should choose between the three string | 650 // encodings: ASCII and two byte. One should choose between the three string |
648 // allocation functions based on the encoding of the string buffer used to | 651 // allocation functions based on the encoding of the string buffer used to |
649 // initialized the string. | 652 // initialized the string. |
650 // - ...FromAscii initializes the string from a buffer that is ASCII | 653 // - ...FromAscii initializes the string from a buffer that is ASCII |
651 // encoded (it does not check that the buffer is ASCII encoded) and the | 654 // encoded (it does not check that the buffer is ASCII encoded) and the |
652 // result will be ASCII encoded. | 655 // result will be ASCII encoded. |
(...skipping 1993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2646 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2649 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2647 | 2650 |
2648 private: | 2651 private: |
2649 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2652 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2650 }; | 2653 }; |
2651 #endif // DEBUG || LIVE_OBJECT_LIST | 2654 #endif // DEBUG || LIVE_OBJECT_LIST |
2652 | 2655 |
2653 } } // namespace v8::internal | 2656 } } // namespace v8::internal |
2654 | 2657 |
2655 #endif // V8_HEAP_H_ | 2658 #endif // V8_HEAP_H_ |
OLD | NEW |