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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 int length, | 658 int length, |
659 PretenureFlag pretenure = NOT_TENURED); | 659 PretenureFlag pretenure = NOT_TENURED); |
660 | 660 |
661 // Returns a deep copy of the JavaScript object. | 661 // Returns a deep copy of the JavaScript object. |
662 // Properties and elements are copied too. | 662 // Properties and elements are copied too. |
663 // Returns failure if allocation failed. | 663 // Returns failure if allocation failed. |
664 // Optionally takes an AllocationSite to be appended in an AllocationMemento. | 664 // Optionally takes an AllocationSite to be appended in an AllocationMemento. |
665 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source, | 665 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source, |
666 AllocationSite* site = NULL); | 666 AllocationSite* site = NULL); |
667 | 667 |
668 // Allocates the function prototype. | |
669 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | |
670 // failed. | |
671 // Please note this does not perform a garbage collection. | |
672 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); | |
673 | |
674 // Allocates a JS ArrayBuffer object. | 668 // Allocates a JS ArrayBuffer object. |
675 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 669 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
676 // failed. | 670 // failed. |
677 // Please note this does not perform a garbage collection. | 671 // Please note this does not perform a garbage collection. |
678 MUST_USE_RESULT MaybeObject* AllocateJSArrayBuffer(); | 672 MUST_USE_RESULT MaybeObject* AllocateJSArrayBuffer(); |
679 | 673 |
680 // Allocates a Harmony proxy or function proxy. | 674 // Allocates a Harmony proxy or function proxy. |
681 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 675 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
682 // failed. | 676 // failed. |
683 // Please note this does not perform a garbage collection. | 677 // Please note this does not perform a garbage collection. |
(...skipping 2386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3070 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. | 3064 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. |
3071 | 3065 |
3072 private: | 3066 private: |
3073 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3067 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3074 }; | 3068 }; |
3075 #endif // DEBUG | 3069 #endif // DEBUG |
3076 | 3070 |
3077 } } // namespace v8::internal | 3071 } } // namespace v8::internal |
3078 | 3072 |
3079 #endif // V8_HEAP_H_ | 3073 #endif // V8_HEAP_H_ |
OLD | NEW |