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 1387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1398 | 1398 |
1399 | 1399 |
1400 void UpdateNewSpaceReferencesInExternalStringTable( | 1400 void UpdateNewSpaceReferencesInExternalStringTable( |
1401 ExternalStringTableUpdaterCallback updater_func); | 1401 ExternalStringTableUpdaterCallback updater_func); |
1402 | 1402 |
1403 void UpdateReferencesInExternalStringTable( | 1403 void UpdateReferencesInExternalStringTable( |
1404 ExternalStringTableUpdaterCallback updater_func); | 1404 ExternalStringTableUpdaterCallback updater_func); |
1405 | 1405 |
1406 void ProcessWeakReferences(WeakObjectRetainer* retainer); | 1406 void ProcessWeakReferences(WeakObjectRetainer* retainer); |
1407 | 1407 |
| 1408 void VisitExternalResources(v8::ExternalResourceVisitor* visitor); |
| 1409 |
1408 // Helper function that governs the promotion policy from new space to | 1410 // Helper function that governs the promotion policy from new space to |
1409 // old. If the object's old address lies below the new space's age | 1411 // old. If the object's old address lies below the new space's age |
1410 // mark or if we've already filled the bottom 1/16th of the to space, | 1412 // mark or if we've already filled the bottom 1/16th of the to space, |
1411 // we try to promote this object. | 1413 // we try to promote this object. |
1412 inline bool ShouldBePromoted(Address old_address, int object_size); | 1414 inline bool ShouldBePromoted(Address old_address, int object_size); |
1413 | 1415 |
1414 int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } | 1416 int MaxObjectSizeInNewSpace() { return kMaxObjectSizeInNewSpace; } |
1415 | 1417 |
1416 void ClearJSFunctionResultCaches(); | 1418 void ClearJSFunctionResultCaches(); |
1417 | 1419 |
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2552 | 2554 |
2553 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); | 2555 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); |
2554 }; | 2556 }; |
2555 #endif // DEBUG || LIVE_OBJECT_LIST | 2557 #endif // DEBUG || LIVE_OBJECT_LIST |
2556 | 2558 |
2557 } } // namespace v8::internal | 2559 } } // namespace v8::internal |
2558 | 2560 |
2559 #undef HEAP | 2561 #undef HEAP |
2560 | 2562 |
2561 #endif // V8_HEAP_H_ | 2563 #endif // V8_HEAP_H_ |
OLD | NEW |