Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 7484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7495 v8::String::ExternalAsciiStringResource** resource) {} | 7495 v8::String::ExternalAsciiStringResource** resource) {} |
| 7496 virtual void VisitExternalTwoByteString( | 7496 virtual void VisitExternalTwoByteString( |
| 7497 v8::String::ExternalStringResource** resource) {} | 7497 v8::String::ExternalStringResource** resource) {} |
| 7498 | 7498 |
| 7499 // Visits a debug call target in the instruction stream. | 7499 // Visits a debug call target in the instruction stream. |
| 7500 virtual void VisitDebugTarget(RelocInfo* rinfo); | 7500 virtual void VisitDebugTarget(RelocInfo* rinfo); |
| 7501 | 7501 |
| 7502 // Handy shorthand for visiting a single pointer. | 7502 // Handy shorthand for visiting a single pointer. |
| 7503 virtual void VisitPointer(Object** p) { VisitPointers(p, p + 1); } | 7503 virtual void VisitPointer(Object** p) { VisitPointers(p, p + 1); } |
| 7504 | 7504 |
| 7505 virtual void VisitEmbeddedPointer(Code* host, Object** p) { | |
| 7506 VisitPointer(p); | |
|
Erik Corry
2011/09/28 14:57:12
Comment?
| |
| 7507 } | |
| 7508 | |
| 7505 // Visits a contiguous arrays of external references (references to the C++ | 7509 // Visits a contiguous arrays of external references (references to the C++ |
| 7506 // heap) in the half-open range [start, end). Any or all of the values | 7510 // heap) in the half-open range [start, end). Any or all of the values |
| 7507 // may be modified on return. | 7511 // may be modified on return. |
| 7508 virtual void VisitExternalReferences(Address* start, Address* end) {} | 7512 virtual void VisitExternalReferences(Address* start, Address* end) {} |
| 7509 | 7513 |
| 7510 inline void VisitExternalReference(Address* p) { | 7514 inline void VisitExternalReference(Address* p) { |
| 7511 VisitExternalReferences(p, p + 1); | 7515 VisitExternalReferences(p, p + 1); |
| 7512 } | 7516 } |
| 7513 | 7517 |
| 7514 // Visits a handle that has an embedder-assigned class ID. | 7518 // Visits a handle that has an embedder-assigned class ID. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7555 } else { | 7559 } else { |
| 7556 value &= ~(1 << bit_position); | 7560 value &= ~(1 << bit_position); |
| 7557 } | 7561 } |
| 7558 return value; | 7562 return value; |
| 7559 } | 7563 } |
| 7560 }; | 7564 }; |
| 7561 | 7565 |
| 7562 } } // namespace v8::internal | 7566 } } // namespace v8::internal |
| 7563 | 7567 |
| 7564 #endif // V8_OBJECTS_H_ | 7568 #endif // V8_OBJECTS_H_ |
| OLD | NEW |