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 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 map->set_prototype(null_value()); | 1601 map->set_prototype(null_value()); |
1602 map->set_constructor(null_value()); | 1602 map->set_constructor(null_value()); |
1603 map->set_instance_size(instance_size); | 1603 map->set_instance_size(instance_size); |
1604 map->set_inobject_properties(0); | 1604 map->set_inobject_properties(0); |
1605 map->set_pre_allocated_property_fields(0); | 1605 map->set_pre_allocated_property_fields(0); |
1606 map->init_instance_descriptors(); | 1606 map->init_instance_descriptors(); |
1607 map->set_code_cache(empty_fixed_array()); | 1607 map->set_code_cache(empty_fixed_array()); |
1608 map->set_prototype_transitions(empty_fixed_array()); | 1608 map->set_prototype_transitions(empty_fixed_array()); |
1609 map->set_unused_property_fields(0); | 1609 map->set_unused_property_fields(0); |
1610 map->set_bit_field(0); | 1610 map->set_bit_field(0); |
1611 map->set_bit_field2((1 << Map::kIsExtensible) | (1 << Map::kHasFastElements)); | 1611 map->set_bit_field2(1 << Map::kIsExtensible); |
| 1612 map->set_elements_kind(JSObject::FAST_ELEMENTS); |
1612 | 1613 |
1613 // If the map object is aligned fill the padding area with Smi 0 objects. | 1614 // If the map object is aligned fill the padding area with Smi 0 objects. |
1614 if (Map::kPadStart < Map::kSize) { | 1615 if (Map::kPadStart < Map::kSize) { |
1615 memset(reinterpret_cast<byte*>(map) + Map::kPadStart - kHeapObjectTag, | 1616 memset(reinterpret_cast<byte*>(map) + Map::kPadStart - kHeapObjectTag, |
1616 0, | 1617 0, |
1617 Map::kSize - Map::kPadStart); | 1618 Map::kSize - Map::kPadStart); |
1618 } | 1619 } |
1619 return map; | 1620 return map; |
1620 } | 1621 } |
1621 | 1622 |
(...skipping 4299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5921 } | 5922 } |
5922 | 5923 |
5923 | 5924 |
5924 void ExternalStringTable::TearDown() { | 5925 void ExternalStringTable::TearDown() { |
5925 new_space_strings_.Free(); | 5926 new_space_strings_.Free(); |
5926 old_space_strings_.Free(); | 5927 old_space_strings_.Free(); |
5927 } | 5928 } |
5928 | 5929 |
5929 | 5930 |
5930 } } // namespace v8::internal | 5931 } } // namespace v8::internal |
OLD | NEW |