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

Side by Side Diff: src/heap.cc

Issue 556041: Set iIsExtensible to true as default in the map. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 10 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698