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

Side by Side Diff: src/heap.h

Issue 240393003: Allocate filler objects in the factory. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 // Please note this function does not perform a garbage collection. 748 // Please note this function does not perform a garbage collection.
749 MUST_USE_RESULT MaybeObject* AllocateMap( 749 MUST_USE_RESULT MaybeObject* AllocateMap(
750 InstanceType instance_type, 750 InstanceType instance_type,
751 int instance_size, 751 int instance_size,
752 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); 752 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
753 753
754 // Allocates a partial map for bootstrapping. 754 // Allocates a partial map for bootstrapping.
755 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, 755 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type,
756 int instance_size); 756 int instance_size);
757 757
758 // Allocate a block of memory in the given space (filled with a filler).
759 // Used as a fall-back for generated code when the space is full.
760 MUST_USE_RESULT MaybeObject* AllocateFillerObject(int size,
761 bool double_align,
762 AllocationSpace space);
763
758 // Allocates an empty PolymorphicCodeCache. 764 // Allocates an empty PolymorphicCodeCache.
759 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache(); 765 MUST_USE_RESULT MaybeObject* AllocatePolymorphicCodeCache();
760 766
761 // Clear the Instanceof cache (used when a prototype changes). 767 // Clear the Instanceof cache (used when a prototype changes).
762 inline void ClearInstanceofCache(); 768 inline void ClearInstanceofCache();
763 769
764 // Iterates the whole code space to clear all ICs of the given kind. 770 // Iterates the whole code space to clear all ICs of the given kind.
765 void ClearAllICsByKind(Code::Kind kind); 771 void ClearAllICsByKind(Code::Kind kind);
766 772
767 // For use during bootup. 773 // For use during bootup.
(...skipping 2137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2905 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 2911 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
2906 2912
2907 private: 2913 private:
2908 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2914 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2909 }; 2915 };
2910 #endif // DEBUG 2916 #endif // DEBUG
2911 2917
2912 } } // namespace v8::internal 2918 } } // namespace v8::internal
2913 2919
2914 #endif // V8_HEAP_H_ 2920 #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