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

Side by Side Diff: src/heap.h

Issue 12223071: ES6 symbols: Introduce Symbol class, along with abstract Name class (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 years, 10 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 /* is being compacted. */ \ 80 /* is being compacted. */ \
81 V(FixedArray, number_string_cache, NumberStringCache) \ 81 V(FixedArray, number_string_cache, NumberStringCache) \
82 V(Object, instanceof_cache_function, InstanceofCacheFunction) \ 82 V(Object, instanceof_cache_function, InstanceofCacheFunction) \
83 V(Object, instanceof_cache_map, InstanceofCacheMap) \ 83 V(Object, instanceof_cache_map, InstanceofCacheMap) \
84 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \ 84 V(Object, instanceof_cache_answer, InstanceofCacheAnswer) \
85 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \ 85 V(FixedArray, single_character_string_cache, SingleCharacterStringCache) \
86 V(FixedArray, string_split_cache, StringSplitCache) \ 86 V(FixedArray, string_split_cache, StringSplitCache) \
87 V(FixedArray, regexp_multiple_cache, RegExpMultipleCache) \ 87 V(FixedArray, regexp_multiple_cache, RegExpMultipleCache) \
88 V(Object, termination_exception, TerminationException) \ 88 V(Object, termination_exception, TerminationException) \
89 V(Smi, hash_seed, HashSeed) \ 89 V(Smi, hash_seed, HashSeed) \
90 V(Map, symbol_map, SymbolMap) \
90 V(Map, string_map, StringMap) \ 91 V(Map, string_map, StringMap) \
91 V(Map, ascii_string_map, AsciiStringMap) \ 92 V(Map, ascii_string_map, AsciiStringMap) \
92 V(Map, cons_string_map, ConsStringMap) \ 93 V(Map, cons_string_map, ConsStringMap) \
93 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \ 94 V(Map, cons_ascii_string_map, ConsAsciiStringMap) \
94 V(Map, sliced_string_map, SlicedStringMap) \ 95 V(Map, sliced_string_map, SlicedStringMap) \
95 V(Map, sliced_ascii_string_map, SlicedAsciiStringMap) \ 96 V(Map, sliced_ascii_string_map, SlicedAsciiStringMap) \
96 V(Map, external_string_map, ExternalStringMap) \ 97 V(Map, external_string_map, ExternalStringMap) \
97 V(Map, external_string_with_ascii_data_map, ExternalStringWithAsciiDataMap) \ 98 V(Map, external_string_with_ascii_data_map, ExternalStringWithAsciiDataMap) \
98 V(Map, external_ascii_string_map, ExternalAsciiStringMap) \ 99 V(Map, external_ascii_string_map, ExternalAsciiStringMap) \
99 V(Map, short_external_string_map, ShortExternalStringMap) \ 100 V(Map, short_external_string_map, ShortExternalStringMap) \
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 // Allocates an external array of the specified length and type. 835 // Allocates an external array of the specified length and type.
835 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 836 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
836 // failed. 837 // failed.
837 // Please note this does not perform a garbage collection. 838 // Please note this does not perform a garbage collection.
838 MUST_USE_RESULT MaybeObject* AllocateExternalArray( 839 MUST_USE_RESULT MaybeObject* AllocateExternalArray(
839 int length, 840 int length,
840 ExternalArrayType array_type, 841 ExternalArrayType array_type,
841 void* external_pointer, 842 void* external_pointer,
842 PretenureFlag pretenure); 843 PretenureFlag pretenure);
843 844
845 // Allocate a symbol.
846 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
847 // failed.
848 // Please note this does not perform a garbage collection.
849 MUST_USE_RESULT MaybeObject* AllocateSymbol(
850 PretenureFlag pretenure = NOT_TENURED);
851
844 // Allocate a tenured JS global property cell. 852 // Allocate a tenured JS global property cell.
845 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 853 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
846 // failed. 854 // failed.
847 // Please note this does not perform a garbage collection. 855 // Please note this does not perform a garbage collection.
848 MUST_USE_RESULT MaybeObject* AllocateJSGlobalPropertyCell(Object* value); 856 MUST_USE_RESULT MaybeObject* AllocateJSGlobalPropertyCell(Object* value);
849 857
850 // Allocates a fixed array initialized with undefined values 858 // Allocates a fixed array initialized with undefined values
851 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 859 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
852 // failed. 860 // failed.
853 // Please note this does not perform a garbage collection. 861 // Please note this does not perform a garbage collection.
(...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after
2950 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2958 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2951 2959
2952 private: 2960 private:
2953 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2961 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2954 }; 2962 };
2955 #endif // DEBUG 2963 #endif // DEBUG
2956 2964
2957 } } // namespace v8::internal 2965 } } // namespace v8::internal
2958 2966
2959 #endif // V8_HEAP_H_ 2967 #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