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

Side by Side Diff: src/serialize.h

Issue 3970002: [Isolates] Minimize TLS accesses during startup deserialization. (Closed)
Patch Set: Created 10 years, 2 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 | src/serialize.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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 virtual void VisitRuntimeEntry(RelocInfo* rinfo) { 306 virtual void VisitRuntimeEntry(RelocInfo* rinfo) {
307 UNREACHABLE(); 307 UNREACHABLE();
308 } 308 }
309 309
310 void ReadChunk(Object** start, Object** end, int space, Address address); 310 void ReadChunk(Object** start, Object** end, int space, Address address);
311 HeapObject* GetAddressFromStart(int space); 311 HeapObject* GetAddressFromStart(int space);
312 inline HeapObject* GetAddressFromEnd(int space); 312 inline HeapObject* GetAddressFromEnd(int space);
313 Address Allocate(int space_number, Space* space, int size); 313 Address Allocate(int space_number, Space* space, int size);
314 void ReadObject(int space_number, Space* space, Object** write_back); 314 void ReadObject(int space_number, Space* space, Object** write_back);
315 315
316 // Cached current isolate.
317 Isolate* isolate_;
318
316 // Keep track of the pages in the paged spaces. 319 // Keep track of the pages in the paged spaces.
317 // (In large object space we are keeping track of individual objects 320 // (In large object space we are keeping track of individual objects
318 // rather than pages.) In new space we just need the address of the 321 // rather than pages.) In new space we just need the address of the
319 // first object and the others will flow from that. 322 // first object and the others will flow from that.
320 List<Address> pages_[SerializerDeserializer::kNumberOfSpaces]; 323 List<Address> pages_[SerializerDeserializer::kNumberOfSpaces];
321 324
322 SnapshotByteSource* source_; 325 SnapshotByteSource* source_;
323 // This is the address of the next object that will be allocated in each 326 // This is the address of the next object that will be allocated in each
324 // space. It is used to calculate the addresses of back-references. 327 // space. It is used to calculate the addresses of back-references.
325 Address high_water_[LAST_SPACE + 1]; 328 Address high_water_[LAST_SPACE + 1];
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 virtual int RootIndex(HeapObject* o) { return kInvalidRootIndex; } 579 virtual int RootIndex(HeapObject* o) { return kInvalidRootIndex; }
577 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) { 580 virtual bool ShouldBeInThePartialSnapshotCache(HeapObject* o) {
578 return false; 581 return false;
579 } 582 }
580 }; 583 };
581 584
582 585
583 } } // namespace v8::internal 586 } } // namespace v8::internal
584 587
585 #endif // V8_SERIALIZE_H_ 588 #endif // V8_SERIALIZE_H_
OLDNEW
« no previous file with comments | « no previous file | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698