| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 48bd78e75485c984ccb56f42b4c450ff49587fa6..c16275b38162e11cf5d0f4521710cbcc137fed0a 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1577,13 +1577,6 @@ Handle<Map> JSObject::FindTransitionToField(Handle<Map> map, Handle<Name> key) {
|
| }
|
|
|
|
|
| -int JSObject::LastAddedFieldIndex() {
|
| - Map* map = this->map();
|
| - int last_added = map->LastAdded();
|
| - return map->instance_descriptors()->GetFieldIndex(last_added);
|
| -}
|
| -
|
| -
|
| ACCESSORS(Oddball, to_string, String, kToStringOffset)
|
| ACCESSORS(Oddball, to_number, Object, kToNumberOffset)
|
|
|
| @@ -3756,7 +3749,8 @@ Code::StubType Code::type() {
|
|
|
|
|
| int Code::arguments_count() {
|
| - ASSERT(is_call_stub() || is_keyed_call_stub() || kind() == STUB);
|
| + ASSERT(is_call_stub() || is_keyed_call_stub() ||
|
| + kind() == STUB || is_handler());
|
| return ExtractArgumentsCountFromFlags(flags());
|
| }
|
|
|
| @@ -3776,6 +3770,7 @@ inline void Code::set_is_crankshafted(bool value) {
|
|
|
| int Code::major_key() {
|
| ASSERT(kind() == STUB ||
|
| + kind() == HANDLER ||
|
| kind() == BINARY_OP_IC ||
|
| kind() == COMPARE_IC ||
|
| kind() == COMPARE_NIL_IC ||
|
| @@ -3790,6 +3785,7 @@ int Code::major_key() {
|
|
|
| void Code::set_major_key(int major) {
|
| ASSERT(kind() == STUB ||
|
| + kind() == HANDLER ||
|
| kind() == BINARY_OP_IC ||
|
| kind() == COMPARE_IC ||
|
| kind() == COMPARE_NIL_IC ||
|
| @@ -4025,6 +4021,11 @@ bool Code::is_inline_cache_stub() {
|
| }
|
|
|
|
|
| +bool Code::is_keyed_stub() {
|
| + return is_keyed_load_stub() || is_keyed_store_stub() || is_keyed_call_stub();
|
| +}
|
| +
|
| +
|
| bool Code::is_debug_stub() {
|
| return ic_state() == DEBUG_STUB;
|
| }
|
| @@ -5954,6 +5955,34 @@ MaybeObject* ObjectHashTableShape<entrysize>::AsObject(Heap* heap,
|
| }
|
|
|
|
|
| +template <int entrysize>
|
| +bool WeakHashTableShape<entrysize>::IsMatch(Object* key, Object* other) {
|
| + return key->SameValue(other);
|
| +}
|
| +
|
| +
|
| +template <int entrysize>
|
| +uint32_t WeakHashTableShape<entrysize>::Hash(Object* key) {
|
| + intptr_t hash = reinterpret_cast<intptr_t>(key);
|
| + return (uint32_t)(hash & 0xFFFFFFFF);
|
| +}
|
| +
|
| +
|
| +template <int entrysize>
|
| +uint32_t WeakHashTableShape<entrysize>::HashForObject(Object* key,
|
| + Object* other) {
|
| + intptr_t hash = reinterpret_cast<intptr_t>(other);
|
| + return (uint32_t)(hash & 0xFFFFFFFF);
|
| +}
|
| +
|
| +
|
| +template <int entrysize>
|
| +MaybeObject* WeakHashTableShape<entrysize>::AsObject(Heap* heap,
|
| + Object* key) {
|
| + return key;
|
| +}
|
| +
|
| +
|
| void Map::ClearCodeCache(Heap* heap) {
|
| // No write barrier is needed since empty_fixed_array is not in new space.
|
| // Please note this function is used during marking:
|
|
|