| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 MaybeObject* Heap::CopyFixedArray(FixedArray* src) { | 201 MaybeObject* Heap::CopyFixedArray(FixedArray* src) { |
| 202 return CopyFixedArrayWithMap(src, src->map()); | 202 return CopyFixedArrayWithMap(src, src->map()); |
| 203 } | 203 } |
| 204 | 204 |
| 205 | 205 |
| 206 MaybeObject* Heap::CopyFixedDoubleArray(FixedDoubleArray* src) { | 206 MaybeObject* Heap::CopyFixedDoubleArray(FixedDoubleArray* src) { |
| 207 return CopyFixedDoubleArrayWithMap(src, src->map()); | 207 return CopyFixedDoubleArrayWithMap(src, src->map()); |
| 208 } | 208 } |
| 209 | 209 |
| 210 | 210 |
| 211 MaybeObject* Heap::CopyConstantPoolArray(ConstantPoolArray* src) { |
| 212 return CopyConstantPoolArrayWithMap(src, src->map()); |
| 213 } |
| 214 |
| 215 |
| 211 MaybeObject* Heap::AllocateRaw(int size_in_bytes, | 216 MaybeObject* Heap::AllocateRaw(int size_in_bytes, |
| 212 AllocationSpace space, | 217 AllocationSpace space, |
| 213 AllocationSpace retry_space) { | 218 AllocationSpace retry_space) { |
| 214 ASSERT(AllowHandleAllocation::IsAllowed() && gc_state_ == NOT_IN_GC); | 219 ASSERT(AllowHandleAllocation::IsAllowed() && 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); |
| 219 #ifdef DEBUG | 224 #ifdef DEBUG |
| 220 if (FLAG_gc_interval >= 0 && | 225 if (FLAG_gc_interval >= 0 && |
| (...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 DisallowAllocationFailure::~DisallowAllocationFailure() { | 851 DisallowAllocationFailure::~DisallowAllocationFailure() { |
| 847 #ifdef DEBUG | 852 #ifdef DEBUG |
| 848 HEAP->disallow_allocation_failure_ = old_state_; | 853 HEAP->disallow_allocation_failure_ = old_state_; |
| 849 #endif | 854 #endif |
| 850 } | 855 } |
| 851 | 856 |
| 852 | 857 |
| 853 } } // namespace v8::internal | 858 } } // namespace v8::internal |
| 854 | 859 |
| 855 #endif // V8_HEAP_INL_H_ | 860 #endif // V8_HEAP_INL_H_ |
| OLD | NEW |