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 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1426 // Returns the field at offset in obj, as a read/write Object* reference. | 1426 // Returns the field at offset in obj, as a read/write Object* reference. |
1427 // Does no checking, and is safe to use during GC, while maps are invalid. | 1427 // Does no checking, and is safe to use during GC, while maps are invalid. |
1428 // Does not invoke write barrier, so should only be assigned to | 1428 // Does not invoke write barrier, so should only be assigned to |
1429 // during marking GC. | 1429 // during marking GC. |
1430 static inline Object** RawField(HeapObject* obj, int offset); | 1430 static inline Object** RawField(HeapObject* obj, int offset); |
1431 | 1431 |
1432 // Casting. | 1432 // Casting. |
1433 static inline HeapObject* cast(Object* obj); | 1433 static inline HeapObject* cast(Object* obj); |
1434 | 1434 |
1435 // Return the write barrier mode for this. Callers of this function | 1435 // Return the write barrier mode for this. Callers of this function |
1436 // must be able to present a reference to an AssertNoAllocation | 1436 // must be able to present a reference to an DisallowHeapAllocation |
1437 // object as a sign that they are not going to use this function | 1437 // object as a sign that they are not going to use this function |
1438 // from code that allocates and thus invalidates the returned write | 1438 // from code that allocates and thus invalidates the returned write |
1439 // barrier mode. | 1439 // barrier mode. |
1440 inline WriteBarrierMode GetWriteBarrierMode( | 1440 inline WriteBarrierMode GetWriteBarrierMode( |
1441 const DisallowHeapAllocation& promise); | 1441 const DisallowHeapAllocation& promise); |
1442 | 1442 |
1443 // Dispatched behavior. | 1443 // Dispatched behavior. |
1444 void HeapObjectShortPrint(StringStream* accumulator); | 1444 void HeapObjectShortPrint(StringStream* accumulator); |
1445 #ifdef OBJECT_PRINT | 1445 #ifdef OBJECT_PRINT |
1446 inline void HeapObjectPrint() { | 1446 inline void HeapObjectPrint() { |
(...skipping 8234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9681 } else { | 9681 } else { |
9682 value &= ~(1 << bit_position); | 9682 value &= ~(1 << bit_position); |
9683 } | 9683 } |
9684 return value; | 9684 return value; |
9685 } | 9685 } |
9686 }; | 9686 }; |
9687 | 9687 |
9688 } } // namespace v8::internal | 9688 } } // namespace v8::internal |
9689 | 9689 |
9690 #endif // V8_OBJECTS_H_ | 9690 #endif // V8_OBJECTS_H_ |
OLD | NEW |