Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 608 | 608 |
| 609 // Allocates an empty code cache. | 609 // Allocates an empty code cache. |
| 610 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); | 610 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); |
| 611 | 611 |
| 612 // Allocates a serialized scope info. | 612 // Allocates a serialized scope info. |
| 613 MUST_USE_RESULT MaybeObject* AllocateScopeInfo(int length); | 613 MUST_USE_RESULT MaybeObject* AllocateScopeInfo(int length); |
| 614 | 614 |
| 615 // Allocates an empty PolymorphicCodeCache. | 615 // Allocates an empty PolymorphicCodeCache. |
| 616 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); | 616 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); |
| 617 | 617 |
| 618 // Allocates an empty AccessorPair. | |
| 619 MaybeObject* AllocateAccessorPair(); | |
|
Kevin Millikin (Chromium)
2012/01/10 08:57:30
MUST_USE_RESULT to warn if a developer does not ch
Sven Panne
2012/01/10 09:45:03
Done.
| |
| 620 | |
| 618 // Clear the Instanceof cache (used when a prototype changes). | 621 // Clear the Instanceof cache (used when a prototype changes). |
| 619 inline void ClearInstanceofCache(); | 622 inline void ClearInstanceofCache(); |
| 620 | 623 |
| 621 // Allocates and fully initializes a String. There are two String | 624 // Allocates and fully initializes a String. There are two String |
| 622 // encodings: ASCII and two byte. One should choose between the three string | 625 // encodings: ASCII and two byte. One should choose between the three string |
| 623 // allocation functions based on the encoding of the string buffer used to | 626 // allocation functions based on the encoding of the string buffer used to |
| 624 // initialized the string. | 627 // initialized the string. |
| 625 // - ...FromAscii initializes the string from a buffer that is ASCII | 628 // - ...FromAscii initializes the string from a buffer that is ASCII |
| 626 // encoded (it does not check that the buffer is ASCII encoded) and the | 629 // encoded (it does not check that the buffer is ASCII encoded) and the |
| 627 // result will be ASCII encoded. | 630 // result will be ASCII encoded. |
| (...skipping 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2610 | 2613 |
| 2611 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2614 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 2612 }; | 2615 }; |
| 2613 #endif // DEBUG || LIVE_OBJECT_LIST | 2616 #endif // DEBUG || LIVE_OBJECT_LIST |
| 2614 | 2617 |
| 2615 } } // namespace v8::internal | 2618 } } // namespace v8::internal |
| 2616 | 2619 |
| 2617 #undef HEAP | 2620 #undef HEAP |
| 2618 | 2621 |
| 2619 #endif // V8_HEAP_H_ | 2622 #endif // V8_HEAP_H_ |
| OLD | NEW |