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

Side by Side Diff: src/heap/heap-inl.h

Issue 1131783003: Embedded constant pools. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debug-mode Arm issue. Created 5 years, 6 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
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_HEAP_HEAP_INL_H_ 5 #ifndef V8_HEAP_HEAP_INL_H_
6 #define V8_HEAP_HEAP_INL_H_ 6 #define V8_HEAP_HEAP_INL_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 return CopyFixedArrayWithMap(src, src->map()); 142 return CopyFixedArrayWithMap(src, src->map());
143 } 143 }
144 144
145 145
146 AllocationResult Heap::CopyFixedDoubleArray(FixedDoubleArray* src) { 146 AllocationResult Heap::CopyFixedDoubleArray(FixedDoubleArray* src) {
147 if (src->length() == 0) return src; 147 if (src->length() == 0) return src;
148 return CopyFixedDoubleArrayWithMap(src, src->map()); 148 return CopyFixedDoubleArrayWithMap(src, src->map());
149 } 149 }
150 150
151 151
152 AllocationResult Heap::CopyConstantPoolArray(ConstantPoolArray* src) {
153 if (src->length() == 0) return src;
154 return CopyConstantPoolArrayWithMap(src, src->map());
155 }
156
157
158 AllocationResult Heap::AllocateRaw(int size_in_bytes, AllocationSpace space, 152 AllocationResult Heap::AllocateRaw(int size_in_bytes, AllocationSpace space,
159 AllocationSpace retry_space, 153 AllocationSpace retry_space,
160 AllocationAlignment alignment) { 154 AllocationAlignment alignment) {
161 DCHECK(AllowHandleAllocation::IsAllowed()); 155 DCHECK(AllowHandleAllocation::IsAllowed());
162 DCHECK(AllowHeapAllocation::IsAllowed()); 156 DCHECK(AllowHeapAllocation::IsAllowed());
163 DCHECK(gc_state_ == NOT_IN_GC); 157 DCHECK(gc_state_ == NOT_IN_GC);
164 #ifdef DEBUG 158 #ifdef DEBUG
165 if (FLAG_gc_interval >= 0 && AllowAllocationFailure::IsAllowed(isolate_) && 159 if (FLAG_gc_interval >= 0 && AllowAllocationFailure::IsAllowed(isolate_) &&
166 Heap::allocation_timeout_-- <= 0) { 160 Heap::allocation_timeout_-- <= 0) {
167 return AllocationResult::Retry(space); 161 return AllocationResult::Retry(space);
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 682
689 void VerifySmisVisitor::VisitPointers(Object** start, Object** end) { 683 void VerifySmisVisitor::VisitPointers(Object** start, Object** end) {
690 for (Object** current = start; current < end; current++) { 684 for (Object** current = start; current < end; current++) {
691 CHECK((*current)->IsSmi()); 685 CHECK((*current)->IsSmi());
692 } 686 }
693 } 687 }
694 } 688 }
695 } // namespace v8::internal 689 } // namespace v8::internal
696 690
697 #endif // V8_HEAP_HEAP_INL_H_ 691 #endif // V8_HEAP_HEAP_INL_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698