Chromium Code Reviews| 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 | |
|
rossberg
2013/04/25 11:00:55
Style: remove extra line
Dmitry Lomov (no reviews)
2013/04/25 11:48:01
Done.
| |
| 697 // Allocates the JS ArrayBuffer object. | |
|
rossberg
2013/04/25 11:00:55
Nit: "Allocate a JS ArrayBuffer..."
Dmitry Lomov (no reviews)
2013/04/25 11:48:01
Done.
| |
| 698 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | |
| 699 // failed. | |
| 700 // Please note this does not perform a garbage collection. | |
| 701 MUST_USE_RESULT MaybeObject* AllocateJSArrayBuffer(); | |
| 702 | |
| 696 // Allocates a Harmony proxy or function proxy. | 703 // Allocates a Harmony proxy or function proxy. |
| 697 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 704 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
| 698 // failed. | 705 // failed. |
| 699 // Please note this does not perform a garbage collection. | 706 // Please note this does not perform a garbage collection. |
| 700 MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler, | 707 MUST_USE_RESULT MaybeObject* AllocateJSProxy(Object* handler, |
| 701 Object* prototype); | 708 Object* prototype); |
| 702 | 709 |
| 703 MUST_USE_RESULT MaybeObject* AllocateJSFunctionProxy(Object* handler, | 710 MUST_USE_RESULT MaybeObject* AllocateJSFunctionProxy(Object* handler, |
| 704 Object* call_trap, | 711 Object* call_trap, |
| 705 Object* construct_trap, | 712 Object* construct_trap, |
| (...skipping 2309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3015 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 3022 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
| 3016 | 3023 |
| 3017 private: | 3024 private: |
| 3018 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 3025 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
| 3019 }; | 3026 }; |
| 3020 #endif // DEBUG | 3027 #endif // DEBUG |
| 3021 | 3028 |
| 3022 } } // namespace v8::internal | 3029 } } // namespace v8::internal |
| 3023 | 3030 |
| 3024 #endif // V8_HEAP_H_ | 3031 #endif // V8_HEAP_H_ |
| OLD | NEW |