Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 125 } | 125 } |
| 126 | 126 |
| 127 static void RecordWriteFromCode(HeapObject* obj, | 127 static void RecordWriteFromCode(HeapObject* obj, |
| 128 Object* value, | 128 Object* value, |
| 129 Isolate* isolate); | 129 Isolate* isolate); |
| 130 | 130 |
| 131 static void RecordWriteForEvacuationFromCode(HeapObject* obj, | 131 static void RecordWriteForEvacuationFromCode(HeapObject* obj, |
| 132 Object** slot, | 132 Object** slot, |
| 133 Isolate* isolate); | 133 Isolate* isolate); |
| 134 | 134 |
| 135 // Returns true if you need to record a slot. | |
|
Vyacheslav Egorov (Google)
2012/09/11 13:51:12
Enhance comment:
record a slot for compation. Ret
| |
| 135 INLINE(bool BaseRecordWrite(HeapObject* obj, Object** slot, Object* value)); | 136 INLINE(bool BaseRecordWrite(HeapObject* obj, Object** slot, Object* value)); |
| 136 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value)); | 137 INLINE(void RecordWrite(HeapObject* obj, Object** slot, Object* value)); |
| 137 INLINE(void RecordWriteIntoCode(HeapObject* obj, | 138 INLINE(void RecordWriteIntoCode(HeapObject* obj, |
| 138 RelocInfo* rinfo, | 139 RelocInfo* rinfo, |
| 139 Object* value)); | 140 Object* value)); |
| 140 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, | 141 INLINE(void RecordWriteOfCodeEntry(JSFunction* host, |
| 141 Object** slot, | 142 Object** slot, |
| 142 Code* value)); | 143 Code* value)); |
| 143 | 144 |
| 144 | 145 |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 285 intptr_t allocated_; | 286 intptr_t allocated_; |
| 286 | 287 |
| 287 int no_marking_scope_depth_; | 288 int no_marking_scope_depth_; |
| 288 | 289 |
| 289 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); | 290 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); |
| 290 }; | 291 }; |
| 291 | 292 |
| 292 } } // namespace v8::internal | 293 } } // namespace v8::internal |
| 293 | 294 |
| 294 #endif // V8_INCREMENTAL_MARKING_H_ | 295 #endif // V8_INCREMENTAL_MARKING_H_ |
| OLD | NEW |