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

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

Issue 5985012: Rename write buffers to store buffers. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 11 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/serialize.cc ('k') | src/store-buffer.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 21 matching lines...) Expand all
32 #include "checks.h" 32 #include "checks.h"
33 #include "globals.h" 33 #include "globals.h"
34 #include "platform.h" 34 #include "platform.h"
35 35
36 namespace v8 { 36 namespace v8 {
37 namespace internal { 37 namespace internal {
38 38
39 39
40 // Used to implement the write barrier by collecting addresses of pointers 40 // Used to implement the write barrier by collecting addresses of pointers
41 // between spaces. 41 // between spaces.
42 class WriteBuffer : public AllStatic { 42 class StoreBuffer : public AllStatic {
43 public: 43 public:
44 static inline Address TopAddress(); 44 static inline Address TopAddress();
45 45
46 static void Setup(); 46 static void Setup();
47 static void TearDown(); 47 static void TearDown();
48 48
49 static inline void Mark(Address addr); 49 static inline void Mark(Address addr);
50 50
51 static const int kWriteBufferOverflowBit = 1 << 16; 51 static const int kStoreBufferOverflowBit = 1 << 16;
52 static const int kWriteBufferSize = kWriteBufferOverflowBit; 52 static const int kStoreBufferSize = kStoreBufferOverflowBit;
53 static const int kHashMapLengthLog2 = 12; 53 static const int kHashMapLengthLog2 = 12;
54 static const int kHashMapLength = 1 << kHashMapLengthLog2; 54 static const int kHashMapLength = 1 << kHashMapLengthLog2;
55 55
56 static void Compact(); 56 static void Compact();
57 57
58 private: 58 private:
59 static Address* start_; 59 static Address* start_;
60 static Address* limit_; 60 static Address* limit_;
61 static VirtualMemory* virtual_memory_; 61 static VirtualMemory* virtual_memory_;
62 static uintptr_t* hash_map_1_; 62 static uintptr_t* hash_map_1_;
63 static uintptr_t* hash_map_2_; 63 static uintptr_t* hash_map_2_;
64 }; 64 };
65 65
66 } } // namespace v8::internal 66 } } // namespace v8::internal
67 67
68 #endif // V8_WRITE_BARRIER_H_ 68 #endif // V8_WRITE_BARRIER_H_
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/store-buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698