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

Side by Side Diff: src/heap.h

Issue 32003006: Handlify Heap::AllocateInitialMap method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 // Please note this function does not perform a garbage collection. 730 // Please note this function does not perform a garbage collection.
731 MUST_USE_RESULT MaybeObject* AllocateMap( 731 MUST_USE_RESULT MaybeObject* AllocateMap(
732 InstanceType instance_type, 732 InstanceType instance_type,
733 int instance_size, 733 int instance_size,
734 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND); 734 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND);
735 735
736 // Allocates a partial map for bootstrapping. 736 // Allocates a partial map for bootstrapping.
737 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type, 737 MUST_USE_RESULT MaybeObject* AllocatePartialMap(InstanceType instance_type,
738 int instance_size); 738 int instance_size);
739 739
740 // Allocate a map for the specified function
741 MUST_USE_RESULT MaybeObject* AllocateInitialMap(JSFunction* fun);
742
743 // Allocates an empty code cache. 740 // Allocates an empty code cache.
744 MUST_USE_RESULT MaybeObject* AllocateCodeCache(); 741 MUST_USE_RESULT MaybeObject* AllocateCodeCache();
745 742
746 // Allocates a serialized scope info. 743 // Allocates a serialized scope info.
747 MUST_USE_RESULT MaybeObject* AllocateScopeInfo(int length); 744 MUST_USE_RESULT MaybeObject* AllocateScopeInfo(int length);
748 745
749 // Allocates an External object for v8's external API. 746 // Allocates an External object for v8's external API.
750 MUST_USE_RESULT MaybeObject* AllocateExternal(void* value); 747 MUST_USE_RESULT MaybeObject* AllocateExternal(void* value);
751 748
752 // Allocates an empty PolymorphicCodeCache. 749 // Allocates an empty PolymorphicCodeCache.
(...skipping 2320 matching lines...) Expand 10 before | Expand all | Expand 10 after
3073 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3070 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3074 3071
3075 private: 3072 private:
3076 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3073 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3077 }; 3074 };
3078 #endif // DEBUG 3075 #endif // DEBUG
3079 3076
3080 } } // namespace v8::internal 3077 } } // namespace v8::internal
3081 3078
3082 #endif // V8_HEAP_H_ 3079 #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