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

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

Issue 790353006: Call DisableInlineAllocation() in heap setup when flag inline_new is off. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 5375 matching lines...) Expand 10 before | Expand all | Expand 10 after
5386 } 5386 }
5387 } 5387 }
5388 5388
5389 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity())); 5389 LOG(isolate_, IntPtrTEvent("heap-capacity", Capacity()));
5390 LOG(isolate_, IntPtrTEvent("heap-available", Available())); 5390 LOG(isolate_, IntPtrTEvent("heap-available", Available()));
5391 5391
5392 store_buffer()->SetUp(); 5392 store_buffer()->SetUp();
5393 5393
5394 mark_compact_collector()->SetUp(); 5394 mark_compact_collector()->SetUp();
5395 5395
5396 if (!FLAG_inline_new) DisableInlineAllocation();
5397
5396 return true; 5398 return true;
5397 } 5399 }
5398 5400
5399 5401
5400 bool Heap::CreateHeapObjects() { 5402 bool Heap::CreateHeapObjects() {
5401 // Create initial maps. 5403 // Create initial maps.
5402 if (!CreateInitialMaps()) return false; 5404 if (!CreateInitialMaps()) return false;
5403 CreateApiObjects(); 5405 CreateApiObjects();
5404 5406
5405 // Create initial objects 5407 // Create initial objects
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
6396 static_cast<int>(object_sizes_last_time_[index])); 6398 static_cast<int>(object_sizes_last_time_[index]));
6397 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) 6399 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT)
6398 #undef ADJUST_LAST_TIME_OBJECT_COUNT 6400 #undef ADJUST_LAST_TIME_OBJECT_COUNT
6399 6401
6400 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); 6402 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_));
6401 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); 6403 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_));
6402 ClearObjectStats(); 6404 ClearObjectStats();
6403 } 6405 }
6404 } 6406 }
6405 } // namespace v8::internal 6407 } // 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