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

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

Issue 1123743002: Fix another may not be init compile error on AIX (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 2398 matching lines...) Expand 10 before | Expand all | Expand 10 after
2409 Max(kMinimumOldGenerationAllocationLimit, 2409 Max(kMinimumOldGenerationAllocationLimit,
2410 static_cast<intptr_t>( 2410 static_cast<intptr_t>(
2411 static_cast<double>(old_generation_allocation_limit_) * 2411 static_cast<double>(old_generation_allocation_limit_) *
2412 (tracer()->AverageSurvivalRatio() / 100))); 2412 (tracer()->AverageSurvivalRatio() / 100)));
2413 } 2413 }
2414 } 2414 }
2415 2415
2416 2416
2417 AllocationResult Heap::AllocatePartialMap(InstanceType instance_type, 2417 AllocationResult Heap::AllocatePartialMap(InstanceType instance_type,
2418 int instance_size) { 2418 int instance_size) {
2419 Object* result; 2419 Object* result = nullptr;
2420 AllocationResult allocation = AllocateRaw(Map::kSize, MAP_SPACE, MAP_SPACE); 2420 AllocationResult allocation = AllocateRaw(Map::kSize, MAP_SPACE, MAP_SPACE);
2421 if (!allocation.To(&result)) return allocation; 2421 if (!allocation.To(&result)) return allocation;
2422 2422
2423 // Map::cast cannot be used due to uninitialized map field. 2423 // Map::cast cannot be used due to uninitialized map field.
2424 reinterpret_cast<Map*>(result)->set_map(raw_unchecked_meta_map()); 2424 reinterpret_cast<Map*>(result)->set_map(raw_unchecked_meta_map());
2425 reinterpret_cast<Map*>(result)->set_instance_type(instance_type); 2425 reinterpret_cast<Map*>(result)->set_instance_type(instance_type);
2426 reinterpret_cast<Map*>(result)->set_instance_size(instance_size); 2426 reinterpret_cast<Map*>(result)->set_instance_size(instance_size);
2427 // Initialize to only containing tagged fields. 2427 // Initialize to only containing tagged fields.
2428 reinterpret_cast<Map*>(result)->set_visitor_id( 2428 reinterpret_cast<Map*>(result)->set_visitor_id(
2429 StaticVisitorBase::GetVisitorId(instance_type, instance_size, false)); 2429 StaticVisitorBase::GetVisitorId(instance_type, instance_size, false));
(...skipping 3992 matching lines...) Expand 10 before | Expand all | Expand 10 after
6422 static_cast<int>(object_sizes_last_time_[index])); 6422 static_cast<int>(object_sizes_last_time_[index]));
6423 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6423 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6424 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6424 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6425 6425
6426 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6426 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6427 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6427 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6428 ClearObjectStats(); 6428 ClearObjectStats();
6429 } 6429 }
6430 } 6430 }
6431 } // namespace v8::internal 6431 } // 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