Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: src/heap.cc

Issue 6966041: Add complete ElementKind information directly to Map for objects with elements. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 map->set_prototype(null_value()); 1629 map->set_prototype(null_value());
1630 map->set_constructor(null_value()); 1630 map->set_constructor(null_value());
1631 map->set_instance_size(instance_size); 1631 map->set_instance_size(instance_size);
1632 map->set_inobject_properties(0); 1632 map->set_inobject_properties(0);
1633 map->set_pre_allocated_property_fields(0); 1633 map->set_pre_allocated_property_fields(0);
1634 map->init_instance_descriptors(); 1634 map->init_instance_descriptors();
1635 map->set_code_cache(empty_fixed_array()); 1635 map->set_code_cache(empty_fixed_array());
1636 map->set_prototype_transitions(empty_fixed_array()); 1636 map->set_prototype_transitions(empty_fixed_array());
1637 map->set_unused_property_fields(0); 1637 map->set_unused_property_fields(0);
1638 map->set_bit_field(0); 1638 map->set_bit_field(0);
1639 map->set_bit_field2((1 << Map::kIsExtensible) | (1 << Map::kHasFastElements)); 1639 map->set_bit_field2(1 << Map::kIsExtensible);
1640 map->set_elements_kind(JSObject::FAST_ELEMENTS);
1640 1641
1641 // If the map object is aligned fill the padding area with Smi 0 objects. 1642 // If the map object is aligned fill the padding area with Smi 0 objects.
1642 if (Map::kPadStart < Map::kSize) { 1643 if (Map::kPadStart < Map::kSize) {
1643 memset(reinterpret_cast<byte*>(map) + Map::kPadStart - kHeapObjectTag, 1644 memset(reinterpret_cast<byte*>(map) + Map::kPadStart - kHeapObjectTag,
1644 0, 1645 0,
1645 Map::kSize - Map::kPadStart); 1646 Map::kSize - Map::kPadStart);
1646 } 1647 }
1647 return map; 1648 return map;
1648 } 1649 }
1649 1650
(...skipping 4299 matching lines...) Expand 10 before | Expand all | Expand 10 after
5949 } 5950 }
5950 5951
5951 5952
5952 void ExternalStringTable::TearDown() { 5953 void ExternalStringTable::TearDown() {
5953 new_space_strings_.Free(); 5954 new_space_strings_.Free();
5954 old_space_strings_.Free(); 5955 old_space_strings_.Free();
5955 } 5956 }
5956 5957
5957 5958
5958 } } // namespace v8::internal 5959 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698