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

Side by Side Diff: src/spaces.h

Issue 3336019: [Isolates] Make isolate tests pass on x64 (Closed)
Patch Set: Created 10 years, 3 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/spaces.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 676
677 // The initial chunk of virtual memory. 677 // The initial chunk of virtual memory.
678 VirtualMemory* initial_chunk_; 678 VirtualMemory* initial_chunk_;
679 679
680 // Allocated chunk info: chunk start address, chunk size, and owning space. 680 // Allocated chunk info: chunk start address, chunk size, and owning space.
681 class ChunkInfo BASE_EMBEDDED { 681 class ChunkInfo BASE_EMBEDDED {
682 public: 682 public:
683 ChunkInfo() : address_(NULL), 683 ChunkInfo() : address_(NULL),
684 size_(0), 684 size_(0),
685 owner_(NULL), 685 owner_(NULL),
686 executable_(NOT_EXECUTABLE) {} 686 executable_(NOT_EXECUTABLE),
687 owner_identity_(FIRST_SPACE) {}
687 inline void init(Address a, size_t s, PagedSpace* o); 688 inline void init(Address a, size_t s, PagedSpace* o);
688 Address address() { return address_; } 689 Address address() { return address_; }
689 size_t size() { return size_; } 690 size_t size() { return size_; }
690 PagedSpace* owner() { return owner_; } 691 PagedSpace* owner() { return owner_; }
691 // We save executability of the owner to allow using it 692 // We save executability of the owner to allow using it
692 // when collecting stats after the owner has been destroyed. 693 // when collecting stats after the owner has been destroyed.
693 Executability executable() const { return executable_; } 694 Executability executable() const { return executable_; }
695 AllocationSpace owner_identity() const { return owner_identity_; }
694 696
695 private: 697 private:
696 Address address_; 698 Address address_;
697 size_t size_; 699 size_t size_;
698 PagedSpace* owner_; 700 PagedSpace* owner_;
699 Executability executable_; 701 Executability executable_;
702 AllocationSpace owner_identity_;
700 }; 703 };
701 704
702 // Chunks_, free_chunk_ids_ and top_ act as a stack of free chunk ids. 705 // Chunks_, free_chunk_ids_ and top_ act as a stack of free chunk ids.
703 List<ChunkInfo> chunks_; 706 List<ChunkInfo> chunks_;
704 List<int> free_chunk_ids_; 707 List<int> free_chunk_ids_;
705 int max_nof_chunks_; 708 int max_nof_chunks_;
706 int top_; 709 int top_;
707 710
708 // Push/pop a free chunk id onto/from the stack. 711 // Push/pop a free chunk id onto/from the stack.
709 void Push(int free_chunk_id); 712 void Push(int free_chunk_id);
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2276 } 2279 }
2277 // Must be small, since an iteration is used for lookup. 2280 // Must be small, since an iteration is used for lookup.
2278 static const int kMaxComments = 64; 2281 static const int kMaxComments = 64;
2279 }; 2282 };
2280 #endif 2283 #endif
2281 2284
2282 2285
2283 } } // namespace v8::internal 2286 } } // namespace v8::internal
2284 2287
2285 #endif // V8_SPACES_H_ 2288 #endif // V8_SPACES_H_
OLDNEW
« no previous file with comments | « no previous file | src/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698