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