Commit 2489594d authored by danno@chromium.org's avatar danno@chromium.org

Migrate flag from bit_field2 to bit_field3

R=ager@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7064029

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8049 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent cc14935d
...@@ -2540,14 +2540,14 @@ bool Map::attached_to_shared_function_info() { ...@@ -2540,14 +2540,14 @@ bool Map::attached_to_shared_function_info() {
void Map::set_is_shared(bool value) { void Map::set_is_shared(bool value) {
if (value) { if (value) {
set_bit_field2(bit_field2() | (1 << kIsShared)); set_bit_field3(bit_field3() | (1 << kIsShared));
} else { } else {
set_bit_field2(bit_field2() & ~(1 << kIsShared)); set_bit_field3(bit_field3() & ~(1 << kIsShared));
} }
} }
bool Map::is_shared() { bool Map::is_shared() {
return ((1 << kIsShared) & bit_field2()) != 0; return ((1 << kIsShared) & bit_field3()) != 0;
} }
......
...@@ -2535,8 +2535,8 @@ bool NormalizedMapCache::CheckHit(Map* slow, ...@@ -2535,8 +2535,8 @@ bool NormalizedMapCache::CheckHit(Map* slow,
fast->inobject_properties()) && fast->inobject_properties()) &&
slow->instance_type() == fast->instance_type() && slow->instance_type() == fast->instance_type() &&
slow->bit_field() == fast->bit_field() && slow->bit_field() == fast->bit_field() &&
slow->bit_field3() == fast->bit_field3() && slow->bit_field2() == fast->bit_field2() &&
(slow->bit_field2() & ~(1<<Map::kIsShared)) == fast->bit_field2(); (slow->bit_field3() & ~(1<<Map::kIsShared)) == fast->bit_field3();
} }
......
...@@ -3989,8 +3989,10 @@ class Map: public HeapObject { ...@@ -3989,8 +3989,10 @@ class Map: public HeapObject {
static const int kHasFastElements = 2; static const int kHasFastElements = 2;
static const int kStringWrapperSafeForDefaultValueOf = 3; static const int kStringWrapperSafeForDefaultValueOf = 3;
static const int kAttachedToSharedFunctionInfo = 4; static const int kAttachedToSharedFunctionInfo = 4;
static const int kIsShared = 5; static const int kHasExternalArrayElements = 5;
static const int kHasExternalArrayElements = 6;
// Bit positions for bit field 3
static const int kIsShared = 1;
// Layout of the default cache. It holds alternating name and code objects. // Layout of the default cache. It holds alternating name and code objects.
static const int kCodeCacheEntrySize = 2; static const int kCodeCacheEntrySize = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment