| 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 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1648 // is set to avoid expanding the dictionary during bootstrapping. | 1648 // is set to avoid expanding the dictionary during bootstrapping. |
| 1649 obj = NumberDictionary::Allocate(64); | 1649 obj = NumberDictionary::Allocate(64); |
| 1650 if (obj->IsFailure()) return false; | 1650 if (obj->IsFailure()) return false; |
| 1651 set_non_monomorphic_cache(NumberDictionary::cast(obj)); | 1651 set_non_monomorphic_cache(NumberDictionary::cast(obj)); |
| 1652 | 1652 |
| 1653 CreateFixedStubs(); | 1653 CreateFixedStubs(); |
| 1654 | 1654 |
| 1655 if (InitializeNumberStringCache()->IsFailure()) return false; | 1655 if (InitializeNumberStringCache()->IsFailure()) return false; |
| 1656 | 1656 |
| 1657 // Allocate cache for single character strings. | 1657 // Allocate cache for single character strings. |
| 1658 obj = AllocateFixedArray(String::kMaxAsciiCharCode+1); | 1658 obj = AllocateFixedArray(String::kMaxAsciiCharCode+1, TENURED); |
| 1659 if (obj->IsFailure()) return false; | 1659 if (obj->IsFailure()) return false; |
| 1660 set_single_character_string_cache(FixedArray::cast(obj)); | 1660 set_single_character_string_cache(FixedArray::cast(obj)); |
| 1661 | 1661 |
| 1662 // Allocate cache for external strings pointing to native source code. | 1662 // Allocate cache for external strings pointing to native source code. |
| 1663 obj = AllocateFixedArray(Natives::GetBuiltinsCount()); | 1663 obj = AllocateFixedArray(Natives::GetBuiltinsCount()); |
| 1664 if (obj->IsFailure()) return false; | 1664 if (obj->IsFailure()) return false; |
| 1665 set_natives_source_cache(FixedArray::cast(obj)); | 1665 set_natives_source_cache(FixedArray::cast(obj)); |
| 1666 | 1666 |
| 1667 // Handling of script id generation is in Factory::NewScript. | 1667 // Handling of script id generation is in Factory::NewScript. |
| 1668 set_last_script_id(undefined_value()); | 1668 set_last_script_id(undefined_value()); |
| (...skipping 2569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4238 void ExternalStringTable::TearDown() { | 4238 void ExternalStringTable::TearDown() { |
| 4239 new_space_strings_.Free(); | 4239 new_space_strings_.Free(); |
| 4240 old_space_strings_.Free(); | 4240 old_space_strings_.Free(); |
| 4241 } | 4241 } |
| 4242 | 4242 |
| 4243 | 4243 |
| 4244 List<Object*> ExternalStringTable::new_space_strings_; | 4244 List<Object*> ExternalStringTable::new_space_strings_; |
| 4245 List<Object*> ExternalStringTable::old_space_strings_; | 4245 List<Object*> ExternalStringTable::old_space_strings_; |
| 4246 | 4246 |
| 4247 } } // namespace v8::internal | 4247 } } // namespace v8::internal |
| OLD | NEW |