OLD | NEW |
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 MaybeObject* Heap::CopyFixedArray(FixedArray* src) { | 199 MaybeObject* Heap::CopyFixedArray(FixedArray* src) { |
200 return CopyFixedArrayWithMap(src, src->map()); | 200 return CopyFixedArrayWithMap(src, src->map()); |
201 } | 201 } |
202 | 202 |
203 | 203 |
204 MaybeObject* Heap::CopyFixedDoubleArray(FixedDoubleArray* src) { | 204 MaybeObject* Heap::CopyFixedDoubleArray(FixedDoubleArray* src) { |
205 return CopyFixedDoubleArrayWithMap(src, src->map()); | 205 return CopyFixedDoubleArrayWithMap(src, src->map()); |
206 } | 206 } |
207 | 207 |
208 | 208 |
| 209 MaybeObject* Heap::CopyConstantPoolArray(ConstantPoolArray* src) { |
| 210 return CopyConstantPoolArrayWithMap(src, src->map()); |
| 211 } |
| 212 |
| 213 |
209 MaybeObject* Heap::AllocateRaw(int size_in_bytes, | 214 MaybeObject* Heap::AllocateRaw(int size_in_bytes, |
210 AllocationSpace space, | 215 AllocationSpace space, |
211 AllocationSpace retry_space) { | 216 AllocationSpace retry_space) { |
212 ASSERT(AllowHandleAllocation::IsAllowed()); | 217 ASSERT(AllowHandleAllocation::IsAllowed()); |
213 ASSERT(AllowHeapAllocation::IsAllowed()); | 218 ASSERT(AllowHeapAllocation::IsAllowed()); |
214 ASSERT(gc_state_ == NOT_IN_GC); | 219 ASSERT(gc_state_ == NOT_IN_GC); |
215 ASSERT(space != NEW_SPACE || | 220 ASSERT(space != NEW_SPACE || |
216 retry_space == OLD_POINTER_SPACE || | 221 retry_space == OLD_POINTER_SPACE || |
217 retry_space == OLD_DATA_SPACE || | 222 retry_space == OLD_DATA_SPACE || |
218 retry_space == LO_SPACE); | 223 retry_space == LO_SPACE); |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 #ifdef DEBUG | 886 #ifdef DEBUG |
882 Isolate* isolate = Isolate::Current(); | 887 Isolate* isolate = Isolate::Current(); |
883 isolate->heap()->disallow_allocation_failure_ = old_state_; | 888 isolate->heap()->disallow_allocation_failure_ = old_state_; |
884 #endif | 889 #endif |
885 } | 890 } |
886 | 891 |
887 | 892 |
888 } } // namespace v8::internal | 893 } } // namespace v8::internal |
889 | 894 |
890 #endif // V8_HEAP_INL_H_ | 895 #endif // V8_HEAP_INL_H_ |
OLD | NEW |