| OLD | NEW |
| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } else { | 54 } else { |
| 55 ASSERT(top_ < limit_); | 55 ASSERT(top_ < limit_); |
| 56 } | 56 } |
| 57 } | 57 } |
| 58 | 58 |
| 59 static const int kWriteBufferOverflowBit = 1 << 16; | 59 static const int kWriteBufferOverflowBit = 1 << 16; |
| 60 static const int kWriteBufferSize = kWriteBufferOverflowBit; | 60 static const int kWriteBufferSize = kWriteBufferOverflowBit; |
| 61 static const int kHashMapLengthLog2 = 12; | 61 static const int kHashMapLengthLog2 = 12; |
| 62 static const int kHashMapLength = 1 << kHashMapLengthLog2; | 62 static const int kHashMapLength = 1 << kHashMapLengthLog2; |
| 63 | 63 |
| 64 static void Compact(); |
| 65 |
| 64 private: | 66 private: |
| 65 static Address* top_; | 67 static Address* top_; |
| 66 static Address* start_; | 68 static Address* start_; |
| 67 static Address* limit_; | 69 static Address* limit_; |
| 68 static VirtualMemory* virtual_memory_; | 70 static VirtualMemory* virtual_memory_; |
| 69 static uintptr_t* hash_map_1_; | 71 static uintptr_t* hash_map_1_; |
| 70 static uintptr_t* hash_map_2_; | 72 static uintptr_t* hash_map_2_; |
| 71 | |
| 72 static void Compact(); | |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } } // namespace v8::internal | 75 } } // namespace v8::internal |
| 76 | 76 |
| 77 #endif // V8_WRITE_BARRIER_H_ | 77 #endif // V8_WRITE_BARRIER_H_ |
| OLD | NEW |