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
This commit is contained in:
parent
cc14935ddf
commit
2489594d71
@ -2540,14 +2540,14 @@ bool Map::attached_to_shared_function_info() {
|
||||
|
||||
void Map::set_is_shared(bool value) {
|
||||
if (value) {
|
||||
set_bit_field2(bit_field2() | (1 << kIsShared));
|
||||
set_bit_field3(bit_field3() | (1 << kIsShared));
|
||||
} else {
|
||||
set_bit_field2(bit_field2() & ~(1 << kIsShared));
|
||||
set_bit_field3(bit_field3() & ~(1 << kIsShared));
|
||||
}
|
||||
}
|
||||
|
||||
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,
|
||||
fast->inobject_properties()) &&
|
||||
slow->instance_type() == fast->instance_type() &&
|
||||
slow->bit_field() == fast->bit_field() &&
|
||||
slow->bit_field3() == fast->bit_field3() &&
|
||||
(slow->bit_field2() & ~(1<<Map::kIsShared)) == fast->bit_field2();
|
||||
slow->bit_field2() == fast->bit_field2() &&
|
||||
(slow->bit_field3() & ~(1<<Map::kIsShared)) == fast->bit_field3();
|
||||
}
|
||||
|
||||
|
||||
|
@ -3989,8 +3989,10 @@ class Map: public HeapObject {
|
||||
static const int kHasFastElements = 2;
|
||||
static const int kStringWrapperSafeForDefaultValueOf = 3;
|
||||
static const int kAttachedToSharedFunctionInfo = 4;
|
||||
static const int kIsShared = 5;
|
||||
static const int kHasExternalArrayElements = 6;
|
||||
static const int kHasExternalArrayElements = 5;
|
||||
|
||||
// Bit positions for bit field 3
|
||||
static const int kIsShared = 1;
|
||||
|
||||
// Layout of the default cache. It holds alternating name and code objects.
|
||||
static const int kCodeCacheEntrySize = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user