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

Side by Side Diff: src/heap/heap.cc

Issue 1153233004: Fix compile failure for AIX (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | no next file » | 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 4438 matching lines...) Expand 10 before | Expand all | Expand 10 after
4449 return object; 4449 return object;
4450 } 4450 }
4451 4451
4452 4452
4453 AllocationResult Heap::AllocateConstantPoolArray( 4453 AllocationResult Heap::AllocateConstantPoolArray(
4454 const ConstantPoolArray::NumberOfEntries& small) { 4454 const ConstantPoolArray::NumberOfEntries& small) {
4455 CHECK(small.are_in_range(0, ConstantPoolArray::kMaxSmallEntriesPerType)); 4455 CHECK(small.are_in_range(0, ConstantPoolArray::kMaxSmallEntriesPerType));
4456 int size = ConstantPoolArray::SizeFor(small); 4456 int size = ConstantPoolArray::SizeFor(small);
4457 AllocationSpace space = SelectSpace(size, TENURED); 4457 AllocationSpace space = SelectSpace(size, TENURED);
4458 4458
4459 HeapObject* object; 4459 HeapObject* object = nullptr;
4460 { 4460 {
4461 AllocationResult allocation = 4461 AllocationResult allocation =
4462 AllocateRaw(size, space, OLD_SPACE, kDoubleAligned); 4462 AllocateRaw(size, space, OLD_SPACE, kDoubleAligned);
4463 if (!allocation.To(&object)) return allocation; 4463 if (!allocation.To(&object)) return allocation;
4464 } 4464 }
4465 object->set_map_no_write_barrier(constant_pool_array_map()); 4465 object->set_map_no_write_barrier(constant_pool_array_map());
4466 4466
4467 ConstantPoolArray* constant_pool = ConstantPoolArray::cast(object); 4467 ConstantPoolArray* constant_pool = ConstantPoolArray::cast(object);
4468 constant_pool->Init(small); 4468 constant_pool->Init(small);
4469 constant_pool->ClearPtrEntries(isolate()); 4469 constant_pool->ClearPtrEntries(isolate());
(...skipping 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after
6614 *object_type = "CODE_TYPE"; \ 6614 *object_type = "CODE_TYPE"; \
6615 *object_sub_type = "CODE_AGE/" #name; \ 6615 *object_sub_type = "CODE_AGE/" #name; \
6616 return true; 6616 return true;
6617 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME) 6617 CODE_AGE_LIST_COMPLETE(COMPARE_AND_RETURN_NAME)
6618 #undef COMPARE_AND_RETURN_NAME 6618 #undef COMPARE_AND_RETURN_NAME
6619 } 6619 }
6620 return false; 6620 return false;
6621 } 6621 }
6622 } 6622 }
6623 } // namespace v8::internal 6623 } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698