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

Side by Side Diff: src/heap.h

Issue 21055011: First implementation of allocation elimination in Hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased. Created 7 years, 4 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.cc ('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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 // constructor. The object is reinitialized and behaves as an 729 // constructor. The object is reinitialized and behaves as an
730 // object that has been freshly allocated using the constructor. 730 // object that has been freshly allocated using the constructor.
731 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy( 731 MUST_USE_RESULT MaybeObject* ReinitializeJSGlobalProxy(
732 JSFunction* constructor, JSGlobalProxy* global); 732 JSFunction* constructor, JSGlobalProxy* global);
733 733
734 // Allocates and initializes a new JavaScript object based on a map. 734 // Allocates and initializes a new JavaScript object based on a map.
735 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 735 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
736 // failed. 736 // failed.
737 // Please note this does not perform a garbage collection. 737 // Please note this does not perform a garbage collection.
738 MUST_USE_RESULT MaybeObject* AllocateJSObjectFromMap( 738 MUST_USE_RESULT MaybeObject* AllocateJSObjectFromMap(
739 Map* map, PretenureFlag pretenure = NOT_TENURED); 739 Map* map, PretenureFlag pretenure = NOT_TENURED, bool alloc_props = true);
740 740
741 MUST_USE_RESULT MaybeObject* AllocateJSObjectFromMapWithAllocationSite( 741 MUST_USE_RESULT MaybeObject* AllocateJSObjectFromMapWithAllocationSite(
742 Map* map, Handle<AllocationSite> allocation_site); 742 Map* map, Handle<AllocationSite> allocation_site);
743 743
744 // Allocates a heap object based on the map. 744 // Allocates a heap object based on the map.
745 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 745 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
746 // failed. 746 // failed.
747 // Please note this function does not perform a garbage collection. 747 // Please note this function does not perform a garbage collection.
748 MUST_USE_RESULT MaybeObject* Allocate(Map* map, AllocationSpace space); 748 MUST_USE_RESULT MaybeObject* Allocate(Map* map, AllocationSpace space);
749 749
(...skipping 2288 matching lines...) Expand 10 before | Expand all | Expand 10 after
3038 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3038 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3039 3039
3040 private: 3040 private:
3041 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3041 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3042 }; 3042 };
3043 #endif // DEBUG 3043 #endif // DEBUG
3044 3044
3045 } } // namespace v8::internal 3045 } } // namespace v8::internal
3046 3046
3047 #endif // V8_HEAP_H_ 3047 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698