| 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 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 map->set_instance_type(instance_type); | 1196 map->set_instance_type(instance_type); |
| 1197 map->set_prototype(null_value()); | 1197 map->set_prototype(null_value()); |
| 1198 map->set_constructor(null_value()); | 1198 map->set_constructor(null_value()); |
| 1199 map->set_instance_size(instance_size); | 1199 map->set_instance_size(instance_size); |
| 1200 map->set_inobject_properties(0); | 1200 map->set_inobject_properties(0); |
| 1201 map->set_pre_allocated_property_fields(0); | 1201 map->set_pre_allocated_property_fields(0); |
| 1202 map->set_instance_descriptors(empty_descriptor_array()); | 1202 map->set_instance_descriptors(empty_descriptor_array()); |
| 1203 map->set_code_cache(empty_fixed_array()); | 1203 map->set_code_cache(empty_fixed_array()); |
| 1204 map->set_unused_property_fields(0); | 1204 map->set_unused_property_fields(0); |
| 1205 map->set_bit_field(0); | 1205 map->set_bit_field(0); |
| 1206 map->set_bit_field2(0); | 1206 map->set_bit_field2(1 << Map::kIsExtensible); |
| 1207 | 1207 |
| 1208 // If the map object is aligned fill the padding area with Smi 0 objects. | 1208 // If the map object is aligned fill the padding area with Smi 0 objects. |
| 1209 if (Map::kPadStart < Map::kSize) { | 1209 if (Map::kPadStart < Map::kSize) { |
| 1210 memset(reinterpret_cast<byte*>(map) + Map::kPadStart - kHeapObjectTag, | 1210 memset(reinterpret_cast<byte*>(map) + Map::kPadStart - kHeapObjectTag, |
| 1211 0, | 1211 0, |
| 1212 Map::kSize - Map::kPadStart); | 1212 Map::kSize - Map::kPadStart); |
| 1213 } | 1213 } |
| 1214 return map; | 1214 return map; |
| 1215 } | 1215 } |
| 1216 | 1216 |
| (...skipping 2978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4195 void ExternalStringTable::TearDown() { | 4195 void ExternalStringTable::TearDown() { |
| 4196 new_space_strings_.Free(); | 4196 new_space_strings_.Free(); |
| 4197 old_space_strings_.Free(); | 4197 old_space_strings_.Free(); |
| 4198 } | 4198 } |
| 4199 | 4199 |
| 4200 | 4200 |
| 4201 List<Object*> ExternalStringTable::new_space_strings_; | 4201 List<Object*> ExternalStringTable::new_space_strings_; |
| 4202 List<Object*> ExternalStringTable::old_space_strings_; | 4202 List<Object*> ExternalStringTable::old_space_strings_; |
| 4203 | 4203 |
| 4204 } } // namespace v8::internal | 4204 } } // namespace v8::internal |
| OLD | NEW |