Index: src/bootstrapper.cc |
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc |
index cfef267892e7f7a8970927483dba35016cb52755..69aff083a3787d709261601c3415b922cfe293f3 100644 |
--- a/src/bootstrapper.cc |
+++ b/src/bootstrapper.cc |
@@ -1145,13 +1145,11 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> inner_global, |
LookupResult lookup(isolate); |
result->LookupOwn(factory->callee_string(), &lookup); |
ASSERT(lookup.IsField()); |
- ASSERT(lookup.GetFieldIndex().property_index() == |
- Heap::kArgumentsCalleeIndex); |
+ ASSERT(lookup.GetFieldIndex().field_index() == Heap::kArgumentsCalleeIndex); |
result->LookupOwn(factory->length_string(), &lookup); |
ASSERT(lookup.IsField()); |
- ASSERT(lookup.GetFieldIndex().property_index() == |
- Heap::kArgumentsLengthIndex); |
+ ASSERT(lookup.GetFieldIndex().field_index() == Heap::kArgumentsLengthIndex); |
ASSERT(result->map()->inobject_properties() > Heap::kArgumentsCalleeIndex); |
ASSERT(result->map()->inobject_properties() > Heap::kArgumentsLengthIndex); |
@@ -1247,8 +1245,7 @@ void Genesis::InitializeGlobal(Handle<GlobalObject> inner_global, |
LookupResult lookup(isolate); |
result->LookupOwn(factory->length_string(), &lookup); |
ASSERT(lookup.IsField()); |
- ASSERT(lookup.GetFieldIndex().property_index() == |
- Heap::kArgumentsLengthIndex); |
+ ASSERT(lookup.GetFieldIndex().field_index() == Heap::kArgumentsLengthIndex); |
ASSERT(result->map()->inobject_properties() > Heap::kArgumentsLengthIndex); |
@@ -2420,7 +2417,7 @@ void Genesis::TransferNamedProperties(Handle<JSObject> from, |
case FIELD: { |
HandleScope inner(isolate()); |
Handle<Name> key = Handle<Name>(descs->GetKey(i)); |
- FieldIndex index = FieldIndex::ForDescriptor(from->map(), i); |
+ int index = descs->GetFieldIndex(i); |
ASSERT(!descs->GetDetails(i).representation().IsDouble()); |
Handle<Object> value = Handle<Object>(from->RawFastPropertyAt(index), |
isolate()); |