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

Side by Side Diff: src/heap-inl.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: Rebased Created 7 years, 2 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/heap.cc ('k') | src/objects.h » ('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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 #ifdef DEBUG 893 #ifdef DEBUG
889 Isolate* isolate = Isolate::Current(); 894 Isolate* isolate = Isolate::Current();
890 isolate->heap()->disallow_allocation_failure_ = old_state_; 895 isolate->heap()->disallow_allocation_failure_ = old_state_;
891 #endif 896 #endif
892 } 897 }
893 898
894 899
895 } } // namespace v8::internal 900 } } // namespace v8::internal
896 901
897 #endif // V8_HEAP_INL_H_ 902 #endif // V8_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698