Chromium Code Reviews

Unified 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: implement all platforms Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 0a3b3d3f88da06fdfe2a745c2cbb7ecee076e000..0907b06fa5b282b24a5a28e6c13e792e29cf83b3 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -1608,7 +1608,8 @@ MaybeObject* Heap::AllocateMap(InstanceType instance_type, int instance_size) {
map->set_prototype_transitions(empty_fixed_array());
map->set_unused_property_fields(0);
map->set_bit_field(0);
- map->set_bit_field2((1 << Map::kIsExtensible) | (1 << Map::kHasFastElements));
+ map->set_bit_field2(1 << Map::kIsExtensible);
+ map->set_elements_kind(JSObject::FAST_ELEMENTS);
// If the map object is aligned fill the padding area with Smi 0 objects.
if (Map::kPadStart < Map::kSize) {

Powered by Google App Engine