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 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 | 581 |
582 // Allocates and initializes a new global object based on a constructor. | 582 // Allocates and initializes a new global object based on a constructor. |
583 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 583 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
584 // failed. | 584 // failed. |
585 // Please note this does not perform a garbage collection. | 585 // Please note this does not perform a garbage collection. |
586 MUST_USE_RESULT MaybeObject* AllocateGlobalObject(JSFunction* constructor); | 586 MUST_USE_RESULT MaybeObject* AllocateGlobalObject(JSFunction* constructor); |
587 | 587 |
588 // Returns a deep copy of the JavaScript object. | 588 // Returns a deep copy of the JavaScript object. |
589 // Properties and elements are copied too. | 589 // Properties and elements are copied too. |
590 // Returns failure if allocation failed. | 590 // Returns failure if allocation failed. |
591 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source); | 591 MUST_USE_RESULT MaybeObject* CopyJSObject( |
| 592 JSObject* source, |
| 593 AllocationSiteInfoMode mode = DONT_TRACK_ALLOCATION_SITE_INFO); |
592 | 594 |
593 // Allocates the function prototype. | 595 // Allocates the function prototype. |
594 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 596 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
595 // failed. | 597 // failed. |
596 // Please note this does not perform a garbage collection. | 598 // Please note this does not perform a garbage collection. |
597 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); | 599 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); |
598 | 600 |
599 // Allocates a Harmony proxy or function proxy. | 601 // Allocates a Harmony proxy or function proxy. |
600 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation | 602 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation |
601 // failed. | 603 // failed. |
(...skipping 2239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2841 AssertNoAllocation no_alloc; // i.e. no gc allowed. | 2843 AssertNoAllocation no_alloc; // i.e. no gc allowed. |
2842 | 2844 |
2843 private: | 2845 private: |
2844 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2846 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2845 }; | 2847 }; |
2846 #endif // DEBUG || LIVE_OBJECT_LIST | 2848 #endif // DEBUG || LIVE_OBJECT_LIST |
2847 | 2849 |
2848 } } // namespace v8::internal | 2850 } } // namespace v8::internal |
2849 | 2851 |
2850 #endif // V8_HEAP_H_ | 2852 #endif // V8_HEAP_H_ |
OLD | NEW |