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

Side by Side Diff: src/store-buffer.h

Issue 7389008: Make Win64 compile. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Addressed review comments Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/spaces-inl.h ('k') | src/utils.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 inline void EnterDirectlyIntoStoreBuffer(Address addr); 77 inline void EnterDirectlyIntoStoreBuffer(Address addr);
78 78
79 // Iterates over all pointers that go from old space to new space. It will 79 // Iterates over all pointers that go from old space to new space. It will
80 // delete the store buffer as it starts so the callback should reenter 80 // delete the store buffer as it starts so the callback should reenter
81 // surviving old-to-new pointers into the store buffer to rebuild it. 81 // surviving old-to-new pointers into the store buffer to rebuild it.
82 void IteratePointersToNewSpace(ObjectSlotCallback callback); 82 void IteratePointersToNewSpace(ObjectSlotCallback callback);
83 83
84 static const int kStoreBufferOverflowBit = 1 << 16; 84 static const int kStoreBufferOverflowBit = 1 << 16;
85 static const int kStoreBufferSize = kStoreBufferOverflowBit; 85 static const int kStoreBufferSize = kStoreBufferOverflowBit;
86 static const int kStoreBufferLength = kStoreBufferSize / sizeof(Address); 86 static const int kStoreBufferLength = kStoreBufferSize / sizeof(Address);
87 static const int kOldStoreBufferLength = kStoreBufferLength * 64; 87 static const int kOldStoreBufferLength = kStoreBufferLength * 16;
88 static const int kHashMapLengthLog2 = 12; 88 static const int kHashMapLengthLog2 = 12;
89 static const int kHashMapLength = 1 << kHashMapLengthLog2; 89 static const int kHashMapLength = 1 << kHashMapLengthLog2;
90 90
91 void Compact(); 91 void Compact();
92 static void GCPrologue(GCType type, GCCallbackFlags flags); 92 static void GCPrologue(GCType type, GCCallbackFlags flags);
93 static void GCEpilogue(GCType type, GCCallbackFlags flags); 93 static void GCEpilogue(GCType type, GCCallbackFlags flags);
94 94
95 Object*** Limit() { return reinterpret_cast<Object***>(old_limit_); } 95 Object*** Limit() { return reinterpret_cast<Object***>(old_limit_); }
96 Object*** Start() { return reinterpret_cast<Object***>(old_start_); } 96 Object*** Start() { return reinterpret_cast<Object***>(old_start_); }
97 Object*** Top() { return reinterpret_cast<Object***>(old_top_); } 97 Object*** Top() { return reinterpret_cast<Object***>(old_top_); }
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 238 }
239 239
240 private: 240 private:
241 StoreBuffer* store_buffer_; 241 StoreBuffer* store_buffer_;
242 bool stored_state_; 242 bool stored_state_;
243 }; 243 };
244 244
245 } } // namespace v8::internal 245 } } // namespace v8::internal
246 246
247 #endif // V8_STORE_BUFFER_H_ 247 #endif // V8_STORE_BUFFER_H_
OLDNEW
« no previous file with comments | « src/spaces-inl.h ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698