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

Side by Side Diff: src/heap.h

Issue 22601003: Out-of-line constant pool on Arm: Stage 2 - Introduce ConstantPoolArray object. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/globals.h ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 V(Map, global_property_cell_map, GlobalPropertyCellMap) \ 64 V(Map, global_property_cell_map, GlobalPropertyCellMap) \
65 V(Map, shared_function_info_map, SharedFunctionInfoMap) \ 65 V(Map, shared_function_info_map, SharedFunctionInfoMap) \
66 V(Map, meta_map, MetaMap) \ 66 V(Map, meta_map, MetaMap) \
67 V(Map, heap_number_map, HeapNumberMap) \ 67 V(Map, heap_number_map, HeapNumberMap) \
68 V(Map, native_context_map, NativeContextMap) \ 68 V(Map, native_context_map, NativeContextMap) \
69 V(Map, fixed_array_map, FixedArrayMap) \ 69 V(Map, fixed_array_map, FixedArrayMap) \
70 V(Map, code_map, CodeMap) \ 70 V(Map, code_map, CodeMap) \
71 V(Map, scope_info_map, ScopeInfoMap) \ 71 V(Map, scope_info_map, ScopeInfoMap) \
72 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \ 72 V(Map, fixed_cow_array_map, FixedCOWArrayMap) \
73 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \ 73 V(Map, fixed_double_array_map, FixedDoubleArrayMap) \
74 V(Map, constant_pool_array_map, ConstantPoolArrayMap) \
74 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \ 75 V(Object, no_interceptor_result_sentinel, NoInterceptorResultSentinel) \
75 V(Map, hash_table_map, HashTableMap) \ 76 V(Map, hash_table_map, HashTableMap) \
76 V(FixedArray, empty_fixed_array, EmptyFixedArray) \ 77 V(FixedArray, empty_fixed_array, EmptyFixedArray) \
77 V(ByteArray, empty_byte_array, EmptyByteArray) \ 78 V(ByteArray, empty_byte_array, EmptyByteArray) \
78 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \ 79 V(DescriptorArray, empty_descriptor_array, EmptyDescriptorArray) \
79 V(Smi, stack_limit, StackLimit) \ 80 V(Smi, stack_limit, StackLimit) \
80 V(Oddball, arguments_marker, ArgumentsMarker) \ 81 V(Oddball, arguments_marker, ArgumentsMarker) \
81 /* The first 32 roots above this line should be boring from a GC point of */ \ 82 /* The first 32 roots above this line should be boring from a GC point of */ \
82 /* view. This means they are never in new space and never on a page that */ \ 83 /* view. This means they are never in new space and never on a page that */ \
83 /* is being compacted. */ \ 84 /* is being compacted. */ \
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 // Make a copy of src and return it. Returns 961 // Make a copy of src and return it. Returns
961 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. 962 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
962 MUST_USE_RESULT inline MaybeObject* CopyFixedDoubleArray( 963 MUST_USE_RESULT inline MaybeObject* CopyFixedDoubleArray(
963 FixedDoubleArray* src); 964 FixedDoubleArray* src);
964 965
965 // Make a copy of src, set the map, and return the copy. Returns 966 // Make a copy of src, set the map, and return the copy. Returns
966 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. 967 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
967 MUST_USE_RESULT MaybeObject* CopyFixedDoubleArrayWithMap( 968 MUST_USE_RESULT MaybeObject* CopyFixedDoubleArrayWithMap(
968 FixedDoubleArray* src, Map* map); 969 FixedDoubleArray* src, Map* map);
969 970
971 // Make a copy of src and return it. Returns
972 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
973 MUST_USE_RESULT inline MaybeObject* CopyConstantPoolArray(
974 ConstantPoolArray* src);
975
976 // Make a copy of src, set the map, and return the copy. Returns
977 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
978 MUST_USE_RESULT MaybeObject* CopyConstantPoolArrayWithMap(
979 ConstantPoolArray* src, Map* map);
980
970 // Allocates a fixed array initialized with the hole values. 981 // Allocates a fixed array initialized with the hole values.
971 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 982 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
972 // failed. 983 // failed.
973 // Please note this does not perform a garbage collection. 984 // Please note this does not perform a garbage collection.
974 MUST_USE_RESULT MaybeObject* AllocateFixedArrayWithHoles( 985 MUST_USE_RESULT MaybeObject* AllocateFixedArrayWithHoles(
975 int length, 986 int length,
976 PretenureFlag pretenure = NOT_TENURED); 987 PretenureFlag pretenure = NOT_TENURED);
977 988
978 MUST_USE_RESULT MaybeObject* AllocateRawFixedDoubleArray( 989 MUST_USE_RESULT MaybeObject* AllocateRawFixedDoubleArray(
979 int length, 990 int length,
980 PretenureFlag pretenure); 991 PretenureFlag pretenure);
981 992
993 MUST_USE_RESULT MaybeObject* AllocateRawConstantPoolArray(
994 int length,
995 int first_int32_index,
996 PretenureFlag pretenure);
997
982 // Allocates a fixed double array with uninitialized values. Returns 998 // Allocates a fixed double array with uninitialized values. Returns
983 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. 999 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
984 // Please note this does not perform a garbage collection. 1000 // Please note this does not perform a garbage collection.
985 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedDoubleArray( 1001 MUST_USE_RESULT MaybeObject* AllocateUninitializedFixedDoubleArray(
986 int length, 1002 int length,
987 PretenureFlag pretenure = NOT_TENURED); 1003 PretenureFlag pretenure = NOT_TENURED);
988 1004
989 // Allocates a fixed double array with hole values. Returns 1005 // Allocates a fixed double array with hole values. Returns
990 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed. 1006 // Failure::RetryAfterGC(requested_bytes, space) if the allocation failed.
991 // Please note this does not perform a garbage collection. 1007 // Please note this does not perform a garbage collection.
(...skipping 2049 matching lines...) Expand 10 before | Expand all | Expand 10 after
3041 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3057 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3042 3058
3043 private: 3059 private:
3044 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3060 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3045 }; 3061 };
3046 #endif // DEBUG 3062 #endif // DEBUG
3047 3063
3048 } } // namespace v8::internal 3064 } } // namespace v8::internal
3049 3065
3050 #endif // V8_HEAP_H_ 3066 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/heap.cc » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698