Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: src/heap.h

Issue 24255005: Some cleanup fixes (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/factory.h ('k') | src/heap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 659
660 // Allocates and initializes a new global object based on a constructor. 660 // Allocates and initializes a new global object based on a constructor.
661 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 661 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
662 // failed. 662 // failed.
663 // Please note this does not perform a garbage collection. 663 // Please note this does not perform a garbage collection.
664 MUST_USE_RESULT MaybeObject* AllocateGlobalObject(JSFunction* constructor); 664 MUST_USE_RESULT MaybeObject* AllocateGlobalObject(JSFunction* constructor);
665 665
666 // Returns a deep copy of the JavaScript object. 666 // Returns a deep copy of the JavaScript object.
667 // Properties and elements are copied too. 667 // Properties and elements are copied too.
668 // Returns failure if allocation failed. 668 // Returns failure if allocation failed.
669 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source); 669 // Optionally takes an AllocationSite to be appended in an AllocationMemento.
670 670 MUST_USE_RESULT MaybeObject* CopyJSObject(JSObject* source,
671 MUST_USE_RESULT MaybeObject* CopyJSObjectWithAllocationSite( 671 AllocationSite* site = NULL);
672 JSObject* source, AllocationSite* site);
673 672
674 // Allocates the function prototype. 673 // Allocates the function prototype.
675 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 674 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
676 // failed. 675 // failed.
677 // Please note this does not perform a garbage collection. 676 // Please note this does not perform a garbage collection.
678 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function); 677 MUST_USE_RESULT MaybeObject* AllocateFunctionPrototype(JSFunction* function);
679 678
680 // Allocates a JS ArrayBuffer object. 679 // Allocates a JS ArrayBuffer object.
681 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 680 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
682 // failed. 681 // failed.
(...skipping 2340 matching lines...) Expand 10 before | Expand all | Expand 10 after
3023 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3022 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3024 3023
3025 private: 3024 private:
3026 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3025 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3027 }; 3026 };
3028 #endif // DEBUG 3027 #endif // DEBUG
3029 3028
3030 } } // namespace v8::internal 3029 } } // namespace v8::internal
3031 3030
3032 #endif // V8_HEAP_H_ 3031 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.h ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698