OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 4006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4017 ExternalStringTable::Iterate(v); | 4017 ExternalStringTable::Iterate(v); |
4018 } | 4018 } |
4019 v->Synchronize("external_string_table"); | 4019 v->Synchronize("external_string_table"); |
4020 } | 4020 } |
4021 | 4021 |
4022 | 4022 |
4023 void Heap::IterateStrongRoots(ObjectVisitor* v, VisitMode mode) { | 4023 void Heap::IterateStrongRoots(ObjectVisitor* v, VisitMode mode) { |
4024 v->VisitPointers(&roots_[0], &roots_[kStrongRootListLength]); | 4024 v->VisitPointers(&roots_[0], &roots_[kStrongRootListLength]); |
4025 v->Synchronize("strong_root_list"); | 4025 v->Synchronize("strong_root_list"); |
4026 | 4026 |
4027 v->VisitPointer(BitCast<Object**, String**>(&hidden_symbol_)); | 4027 v->VisitPointer(BitCast<Object**>(&hidden_symbol_)); |
4028 v->Synchronize("symbol"); | 4028 v->Synchronize("symbol"); |
4029 | 4029 |
4030 Bootstrapper::Iterate(v); | 4030 Bootstrapper::Iterate(v); |
4031 v->Synchronize("bootstrapper"); | 4031 v->Synchronize("bootstrapper"); |
4032 Top::Iterate(v); | 4032 Top::Iterate(v); |
4033 v->Synchronize("top"); | 4033 v->Synchronize("top"); |
4034 Relocatable::Iterate(v); | 4034 Relocatable::Iterate(v); |
4035 v->Synchronize("relocatable"); | 4035 v->Synchronize("relocatable"); |
4036 | 4036 |
4037 #ifdef ENABLE_DEBUGGER_SUPPORT | 4037 #ifdef ENABLE_DEBUGGER_SUPPORT |
(...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5026 void ExternalStringTable::TearDown() { | 5026 void ExternalStringTable::TearDown() { |
5027 new_space_strings_.Free(); | 5027 new_space_strings_.Free(); |
5028 old_space_strings_.Free(); | 5028 old_space_strings_.Free(); |
5029 } | 5029 } |
5030 | 5030 |
5031 | 5031 |
5032 List<Object*> ExternalStringTable::new_space_strings_; | 5032 List<Object*> ExternalStringTable::new_space_strings_; |
5033 List<Object*> ExternalStringTable::old_space_strings_; | 5033 List<Object*> ExternalStringTable::old_space_strings_; |
5034 | 5034 |
5035 } } // namespace v8::internal | 5035 } } // namespace v8::internal |
OLD | NEW |