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

Unified Diff: src/heap.cc

Issue 10824079: Use a special EnumLength field to indicate number of valid enum cache values. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: u Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: src/heap.cc
diff --git a/src/heap.cc b/src/heap.cc
index 698192389a7ec5284d2a3c88a596dfe79f012329..089d7db8cb7c3c63db401955f58ab7bbc57b3cf0 100644
--- a/src/heap.cc
+++ b/src/heap.cc
@@ -2074,7 +2074,9 @@ MaybeObject* Heap::AllocateMap(InstanceType instance_type,
map->set_unused_property_fields(0);
map->set_bit_field(0);
map->set_bit_field2(1 << Map::kIsExtensible);
- map->set_bit_field3(Map::LastAddedBits::encode(Map::kNoneAdded));
+ map->set_bit_field3(
+ Map::EnumLengthBits::update(
Michael Starzinger 2012/08/06 15:06:22 This is a little convoluted. Better use ... map->
Toon Verwaest 2012/08/07 10:49:47 Done.
+ Map::LastAddedBits::encode(Map::kNoneAdded), Map::kInvalidEnumCache));
map->set_elements_kind(elements_kind);
// If the map object is aligned fill the padding area with Smi 0 objects.

Powered by Google App Engine
This is Rietveld 408576698