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

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

Issue 1859063003: [serializer] make snapshot reproducible. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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.h ('k') | src/snapshot/mksnapshot.cc » ('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 #include "src/heap/heap.h" 5 #include "src/heap/heap.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/ast/scopeinfo.h" 9 #include "src/ast/scopeinfo.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 5374 matching lines...) Expand 10 before | Expand all | Expand 10 after
5385 // something that looks like an out of range Smi to the GC. 5385 // something that looks like an out of range Smi to the GC.
5386 5386
5387 // Set up the special root array entries containing the stack limits. 5387 // Set up the special root array entries containing the stack limits.
5388 // These are actually addresses, but the tag makes the GC ignore it. 5388 // These are actually addresses, but the tag makes the GC ignore it.
5389 roots_[kStackLimitRootIndex] = reinterpret_cast<Object*>( 5389 roots_[kStackLimitRootIndex] = reinterpret_cast<Object*>(
5390 (isolate_->stack_guard()->jslimit() & ~kSmiTagMask) | kSmiTag); 5390 (isolate_->stack_guard()->jslimit() & ~kSmiTagMask) | kSmiTag);
5391 roots_[kRealStackLimitRootIndex] = reinterpret_cast<Object*>( 5391 roots_[kRealStackLimitRootIndex] = reinterpret_cast<Object*>(
5392 (isolate_->stack_guard()->real_jslimit() & ~kSmiTagMask) | kSmiTag); 5392 (isolate_->stack_guard()->real_jslimit() & ~kSmiTagMask) | kSmiTag);
5393 } 5393 }
5394 5394
5395 void Heap::ClearStackLimits() {
5396 roots_[kStackLimitRootIndex] = Smi::FromInt(0);
5397 roots_[kRealStackLimitRootIndex] = Smi::FromInt(0);
5398 }
5395 5399
5396 void Heap::PrintAlloctionsHash() { 5400 void Heap::PrintAlloctionsHash() {
5397 uint32_t hash = StringHasher::GetHashCore(raw_allocations_hash_); 5401 uint32_t hash = StringHasher::GetHashCore(raw_allocations_hash_);
5398 PrintF("\n### Allocations = %u, hash = 0x%08x\n", allocations_count(), hash); 5402 PrintF("\n### Allocations = %u, hash = 0x%08x\n", allocations_count(), hash);
5399 } 5403 }
5400 5404
5401 5405
5402 void Heap::NotifyDeserializationComplete() { 5406 void Heap::NotifyDeserializationComplete() {
5403 deserialization_complete_ = true; 5407 deserialization_complete_ = true;
5404 #ifdef DEBUG 5408 #ifdef DEBUG
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
6476 } 6480 }
6477 6481
6478 6482
6479 // static 6483 // static
6480 int Heap::GetStaticVisitorIdForMap(Map* map) { 6484 int Heap::GetStaticVisitorIdForMap(Map* map) {
6481 return StaticVisitorBase::GetVisitorId(map); 6485 return StaticVisitorBase::GetVisitorId(map);
6482 } 6486 }
6483 6487
6484 } // namespace internal 6488 } // namespace internal
6485 } // namespace v8 6489 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/snapshot/mksnapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698