| 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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 } | 427 } |
| 428 | 428 |
| 429 void AddCandidate(JSFunction* function) { | 429 void AddCandidate(JSFunction* function) { |
| 430 ASSERT(function->code() == function->shared()->code()); | 430 ASSERT(function->code() == function->shared()->code()); |
| 431 if (GetNextCandidate(function)->IsUndefined()) { | 431 if (GetNextCandidate(function)->IsUndefined()) { |
| 432 SetNextCandidate(function, jsfunction_candidates_head_); | 432 SetNextCandidate(function, jsfunction_candidates_head_); |
| 433 jsfunction_candidates_head_ = function; | 433 jsfunction_candidates_head_ = function; |
| 434 } | 434 } |
| 435 } | 435 } |
| 436 | 436 |
| 437 void EvictCandidate(SharedFunctionInfo* shared_info); |
| 437 void EvictCandidate(JSFunction* function); | 438 void EvictCandidate(JSFunction* function); |
| 438 | 439 |
| 439 void ProcessCandidates() { | 440 void ProcessCandidates() { |
| 440 ProcessSharedFunctionInfoCandidates(); | 441 ProcessSharedFunctionInfoCandidates(); |
| 441 ProcessJSFunctionCandidates(); | 442 ProcessJSFunctionCandidates(); |
| 442 } | 443 } |
| 443 | 444 |
| 444 void EvictAllCandidates() { | 445 void EvictAllCandidates() { |
| 445 EvictJSFunctionCandidates(); | 446 EvictJSFunctionCandidates(); |
| 446 EvictSharedFunctionInfoCandidates(); | 447 EvictSharedFunctionInfoCandidates(); |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 | 855 |
| 855 friend class Heap; | 856 friend class Heap; |
| 856 }; | 857 }; |
| 857 | 858 |
| 858 | 859 |
| 859 const char* AllocationSpaceName(AllocationSpace space); | 860 const char* AllocationSpaceName(AllocationSpace space); |
| 860 | 861 |
| 861 } } // namespace v8::internal | 862 } } // namespace v8::internal |
| 862 | 863 |
| 863 #endif // V8_MARK_COMPACT_H_ | 864 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |