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

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

Issue 227533006: Synchronize store buffer processing and concurrent sweeping. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
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 23 matching lines...) Expand all
34 #include "platform.h" 34 #include "platform.h"
35 #include "v8globals.h" 35 #include "v8globals.h"
36 36
37 namespace v8 { 37 namespace v8 {
38 namespace internal { 38 namespace internal {
39 39
40 class Page; 40 class Page;
41 class PagedSpace; 41 class PagedSpace;
42 class StoreBuffer; 42 class StoreBuffer;
43 43
44 typedef void (*ObjectSlotCallback)(HeapObject** from, HeapObject* to); 44 typedef void (*ObjectSlotCallback)(HeapObject** address,
45 HeapObject* new_value,
46 Object* old_value);
45 47
46 typedef void (StoreBuffer::*RegionCallback)(Address start, 48 typedef void (StoreBuffer::*RegionCallback)(Address start,
47 Address end, 49 Address end,
48 ObjectSlotCallback slot_callback, 50 ObjectSlotCallback slot_callback,
49 bool clear_maps); 51 bool clear_maps);
50 52
51 // Used to implement the write barrier by collecting addresses of pointers 53 // Used to implement the write barrier by collecting addresses of pointers
52 // between spaces. 54 // between spaces.
53 class StoreBuffer { 55 class StoreBuffer {
54 public: 56 public:
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 } 263 }
262 264
263 private: 265 private:
264 StoreBuffer* store_buffer_; 266 StoreBuffer* store_buffer_;
265 bool stored_state_; 267 bool stored_state_;
266 }; 268 };
267 269
268 } } // namespace v8::internal 270 } } // namespace v8::internal
269 271
270 #endif // V8_STORE_BUFFER_H_ 272 #endif // V8_STORE_BUFFER_H_
OLDNEW
« no previous file with comments | « src/spaces.cc ('k') | src/store-buffer.cc » ('j') | src/store-buffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698