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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source); | 686 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source); |
687 | 687 |
688 MUST_USE_RESULT MaybeObject* CopyJSObjectWithAllocationSite(JSObject* source); | 688 MUST_USE_RESULT MaybeObject* CopyJSObjectWithAllocationSite(JSObject* source); |
689 | 689 |
690 // Allocates the function prototype. | 690 // Allocates the function prototype. |
691 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 691 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
692 // failed. | 692 // failed. |
693 // Please note this does not perform a garbage collection. | 693 // Please note this does not perform a garbage collection. |
694 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); | 694 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); |
695 | 695 |
| 696 // Allocates a JS ArrayBuffer object. |
| 697 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 698 // failed. |
| 699 // Please note this does not perform a garbage collection. |
| 700 MUST_USE_RESULT MaybeObject* AllocateJSArrayBuffer(); |
| 701 |
696 // Allocates a Harmony proxy or function proxy. | 702 // Allocates a Harmony proxy or function proxy. |
697 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 703 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
698 // failed. | 704 // failed. |
699 // Please note this does not perform a garbage collection. | 705 // Please note this does not perform a garbage collection. |
700 MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler, | 706 MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler, |
701 Object* prototype); | 707 Object* prototype); |
702 | 708 |
703 MUST_USE_RESULT MaybeObject* AllocateJSFunctionProxy(Object* handler, | 709 MUST_USE_RESULT MaybeObject* AllocateJSFunctionProxy(Object* handler, |
704 Object* call_trap, | 710 Object* call_trap, |
705 Object* construct_trap, | 711 Object* construct_trap, |
(...skipping 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3020 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 3026 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
3021 | 3027 |
3022 private: | 3028 private: |
3023 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3029 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
3024 }; | 3030 }; |
3025 #endif // DEBUG | 3031 #endif // DEBUG |
3026 | 3032 |
3027 } } // namespace v8::internal | 3033 } } // namespace v8::internal |
3028 | 3034 |
3029 #endif // V8_HEAP_H_ | 3035 #endif // V8_HEAP_H_ |
OLD | NEW |