| 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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 // FlushNumberStringCache | 837 // FlushNumberStringCache |
| 838 if (FLAG_cleanup_code_caches_at_gc) { | 838 if (FLAG_cleanup_code_caches_at_gc) { |
| 839 polymorphic_code_cache()->set_cache(undefined_value()); | 839 polymorphic_code_cache()->set_cache(undefined_value()); |
| 840 } | 840 } |
| 841 | 841 |
| 842 ClearNormalizedMapCaches(); | 842 ClearNormalizedMapCaches(); |
| 843 } | 843 } |
| 844 | 844 |
| 845 | 845 |
| 846 Object* Heap::FindCodeObject(Address a) { | 846 Object* Heap::FindCodeObject(Address a) { |
| 847 return isolate()->pc_to_code_cache()->GcSafeFindCodeForPc(a); | 847 return isolate()->inner_pointer_to_code_cache()-> |
| 848 GcSafeFindCodeForInnerPointer(a); |
| 848 } | 849 } |
| 849 | 850 |
| 850 | 851 |
| 851 // Helper class for copying HeapObjects | 852 // Helper class for copying HeapObjects |
| 852 class ScavengeVisitor: public ObjectVisitor { | 853 class ScavengeVisitor: public ObjectVisitor { |
| 853 public: | 854 public: |
| 854 explicit ScavengeVisitor(Heap* heap) : heap_(heap) {} | 855 explicit ScavengeVisitor(Heap* heap) : heap_(heap) {} |
| 855 | 856 |
| 856 void VisitPointer(Object** p) { ScavengePointer(p); } | 857 void VisitPointer(Object** p) { ScavengePointer(p); } |
| 857 | 858 |
| (...skipping 5485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6343 } | 6344 } |
| 6344 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 6345 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
| 6345 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 6346 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
| 6346 next = chunk->next_chunk(); | 6347 next = chunk->next_chunk(); |
| 6347 isolate_->memory_allocator()->Free(chunk); | 6348 isolate_->memory_allocator()->Free(chunk); |
| 6348 } | 6349 } |
| 6349 chunks_queued_for_free_ = NULL; | 6350 chunks_queued_for_free_ = NULL; |
| 6350 } | 6351 } |
| 6351 | 6352 |
| 6352 } } // namespace v8::internal | 6353 } } // namespace v8::internal |
| OLD | NEW |