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 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1620 map->set_constructor(null_value()); | 1620 map->set_constructor(null_value()); |
1621 map->set_instance_size(instance_size); | 1621 map->set_instance_size(instance_size); |
1622 map->set_inobject_properties(0); | 1622 map->set_inobject_properties(0); |
1623 map->set_pre_allocated_property_fields(0); | 1623 map->set_pre_allocated_property_fields(0); |
1624 map->init_instance_descriptors(); | 1624 map->init_instance_descriptors(); |
1625 map->set_code_cache(empty_fixed_array()); | 1625 map->set_code_cache(empty_fixed_array()); |
1626 map->set_prototype_transitions(empty_fixed_array()); | 1626 map->set_prototype_transitions(empty_fixed_array()); |
1627 map->set_unused_property_fields(0); | 1627 map->set_unused_property_fields(0); |
1628 map->set_bit_field(0); | 1628 map->set_bit_field(0); |
1629 map->set_bit_field2(1 << Map::kIsExtensible); | 1629 map->set_bit_field2(1 << Map::kIsExtensible); |
1630 map->set_elements_kind(JSObject::FAST_ELEMENTS); | 1630 map->set_elements_kind(FAST_ELEMENTS); |
1631 | 1631 |
1632 // If the map object is aligned fill the padding area with Smi 0 objects. | 1632 // If the map object is aligned fill the padding area with Smi 0 objects. |
1633 if (Map::kPadStart < Map::kSize) { | 1633 if (Map::kPadStart < Map::kSize) { |
1634 memset(reinterpret_cast<byte*>(map) + Map::kPadStart - kHeapObjectTag, | 1634 memset(reinterpret_cast<byte*>(map) + Map::kPadStart - kHeapObjectTag, |
1635 0, | 1635 0, |
1636 Map::kSize - Map::kPadStart); | 1636 Map::kSize - Map::kPadStart); |
1637 } | 1637 } |
1638 return map; | 1638 return map; |
1639 } | 1639 } |
1640 | 1640 |
(...skipping 4584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6225 } | 6225 } |
6226 | 6226 |
6227 | 6227 |
6228 void ExternalStringTable::TearDown() { | 6228 void ExternalStringTable::TearDown() { |
6229 new_space_strings_.Free(); | 6229 new_space_strings_.Free(); |
6230 old_space_strings_.Free(); | 6230 old_space_strings_.Free(); |
6231 } | 6231 } |
6232 | 6232 |
6233 | 6233 |
6234 } } // namespace v8::internal | 6234 } } // namespace v8::internal |
OLD | NEW |