OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 4110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4121 if (string->IsSymbol()) { | 4121 if (string->IsSymbol()) { |
4122 *symbol = string; | 4122 *symbol = string; |
4123 return true; | 4123 return true; |
4124 } | 4124 } |
4125 return symbol_table()->LookupSymbolIfExists(string, symbol); | 4125 return symbol_table()->LookupSymbolIfExists(string, symbol); |
4126 } | 4126 } |
4127 | 4127 |
4128 | 4128 |
4129 #ifdef DEBUG | 4129 #ifdef DEBUG |
4130 void Heap::ZapFromSpace() { | 4130 void Heap::ZapFromSpace() { |
4131 ASSERT(reinterpret_cast<Object*>(kFromSpaceZapValue)->IsHeapObject()); | 4131 ASSERT(reinterpret_cast<Object*>(kFromSpaceZapValue)->IsFailure()); |
4132 for (Address a = new_space_.FromSpaceLow(); | 4132 for (Address a = new_space_.FromSpaceLow(); |
4133 a < new_space_.FromSpaceHigh(); | 4133 a < new_space_.FromSpaceHigh(); |
4134 a += kPointerSize) { | 4134 a += kPointerSize) { |
4135 Memory::Address_at(a) = kFromSpaceZapValue; | 4135 Memory::Address_at(a) = kFromSpaceZapValue; |
4136 } | 4136 } |
4137 } | 4137 } |
4138 #endif // DEBUG | 4138 #endif // DEBUG |
4139 | 4139 |
4140 | 4140 |
4141 bool Heap::IteratePointersInDirtyRegion(Address start, | 4141 bool Heap::IteratePointersInDirtyRegion(Address start, |
(...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5588 void ExternalStringTable::TearDown() { | 5588 void ExternalStringTable::TearDown() { |
5589 new_space_strings_.Free(); | 5589 new_space_strings_.Free(); |
5590 old_space_strings_.Free(); | 5590 old_space_strings_.Free(); |
5591 } | 5591 } |
5592 | 5592 |
5593 | 5593 |
5594 List<Object*> ExternalStringTable::new_space_strings_; | 5594 List<Object*> ExternalStringTable::new_space_strings_; |
5595 List<Object*> ExternalStringTable::old_space_strings_; | 5595 List<Object*> ExternalStringTable::old_space_strings_; |
5596 | 5596 |
5597 } } // namespace v8::internal | 5597 } } // namespace v8::internal |
OLD | NEW |