aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/objects/prototype-info-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/objects/prototype-info-inl.h')
-rw-r--r--deps/v8/src/objects/prototype-info-inl.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/deps/v8/src/objects/prototype-info-inl.h b/deps/v8/src/objects/prototype-info-inl.h
index 24e219d46c..7bb8ed109c 100644
--- a/deps/v8/src/objects/prototype-info-inl.h
+++ b/deps/v8/src/objects/prototype-info-inl.h
@@ -17,9 +17,11 @@
namespace v8 {
namespace internal {
+OBJECT_CONSTRUCTORS_IMPL(PrototypeInfo, Struct)
+
CAST_ACCESSOR(PrototypeInfo)
-Map* PrototypeInfo::ObjectCreateMap() {
+Map PrototypeInfo::ObjectCreateMap() {
return Map::cast(object_create_map()->GetHeapObjectAssumeWeak());
}
@@ -30,7 +32,7 @@ void PrototypeInfo::SetObjectCreateMap(Handle<PrototypeInfo> info,
}
bool PrototypeInfo::HasObjectCreateMap() {
- MaybeObject* cache = object_create_map();
+ MaybeObject cache = object_create_map();
return cache->IsWeak();
}
@@ -41,7 +43,7 @@ SMI_ACCESSORS(PrototypeInfo, registry_slot, kRegistrySlotOffset)
SMI_ACCESSORS(PrototypeInfo, bit_field, kBitFieldOffset)
BOOL_ACCESSORS(PrototypeInfo, bit_field, should_be_fast_map, kShouldBeFastBit)
-void PrototypeUsers::MarkSlotEmpty(WeakArrayList* array, int index) {
+void PrototypeUsers::MarkSlotEmpty(WeakArrayList array, int index) {
DCHECK_GT(index, 0);
DCHECK_LT(index, array->length());
// Chain the empty slots into a linked list (each empty slot contains the
@@ -50,11 +52,11 @@ void PrototypeUsers::MarkSlotEmpty(WeakArrayList* array, int index) {
set_empty_slot_index(array, index);
}
-Smi* PrototypeUsers::empty_slot_index(WeakArrayList* array) {
- return array->Get(kEmptySlotIndex)->cast<Smi>();
+Smi PrototypeUsers::empty_slot_index(WeakArrayList array) {
+ return array->Get(kEmptySlotIndex).ToSmi();
}
-void PrototypeUsers::set_empty_slot_index(WeakArrayList* array, int index) {
+void PrototypeUsers::set_empty_slot_index(WeakArrayList array, int index) {
array->Set(kEmptySlotIndex, MaybeObject::FromObject(Smi::FromInt(index)));
}