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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 | 617 |
618 // Allocates and initializes a new global object based on a constructor. | 618 // Allocates and initializes a new global object based on a constructor. |
619 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 619 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
620 // failed. | 620 // failed. |
621 // Please note this does not perform a garbage collection. | 621 // Please note this does not perform a garbage collection. |
622 MUST_USE_RESULT MaybeObject* AllocateGlobalObject(JSFunction* constructor); | 622 MUST_USE_RESULT MaybeObject* AllocateGlobalObject(JSFunction* constructor); |
623 | 623 |
624 // Returns a deep copy of the JavaScript object. | 624 // Returns a deep copy of the JavaScript object. |
625 // Properties and elements are copied too. | 625 // Properties and elements are copied too. |
626 // Returns failure if allocation failed. | 626 // Returns failure if allocation failed. |
627 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source); | 627 MUST_USE_RESULT MaybeObject* CopyJSObject( |
| 628 JSObject* source, |
| 629 AllocationSiteMode mode = DONT_TRACK_ALLOCATION_SITE); |
628 | 630 |
629 // Allocates the function prototype. | 631 // Allocates the function prototype. |
630 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 632 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
631 // failed. | 633 // failed. |
632 // Please note this does not perform a garbage collection. | 634 // Please note this does not perform a garbage collection. |
633 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); | 635 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); |
634 | 636 |
635 // Allocates a Harmony proxy or function proxy. | 637 // Allocates a Harmony proxy or function proxy. |
636 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 638 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
637 // failed. | 639 // failed. |
(...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2895 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2897 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2896 | 2898 |
2897 private: | 2899 private: |
2898 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2900 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2899 }; | 2901 }; |
2900 #endif // DEBUG || LIVE_OBJECT_LIST | 2902 #endif // DEBUG || LIVE_OBJECT_LIST |
2901 | 2903 |
2902 } } // namespace v8::internal | 2904 } } // namespace v8::internal |
2903 | 2905 |
2904 #endif // V8_HEAP_H_ | 2906 #endif // V8_HEAP_H_ |
OLD | NEW |