OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 #include <iomanip> | 8 #include <iomanip> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 17408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17419 | 17419 |
17420 | 17420 |
17421 Handle<UnseededNumberDictionary> UnseededNumberDictionary::AddNumberEntry( | 17421 Handle<UnseededNumberDictionary> UnseededNumberDictionary::AddNumberEntry( |
17422 Handle<UnseededNumberDictionary> dictionary, | 17422 Handle<UnseededNumberDictionary> dictionary, |
17423 uint32_t key, | 17423 uint32_t key, |
17424 Handle<Object> value) { | 17424 Handle<Object> value) { |
17425 SLOW_DCHECK(dictionary->FindEntry(key) == kNotFound); | 17425 SLOW_DCHECK(dictionary->FindEntry(key) == kNotFound); |
17426 return Add(dictionary, key, value, PropertyDetails::Empty()); | 17426 return Add(dictionary, key, value, PropertyDetails::Empty()); |
17427 } | 17427 } |
17428 | 17428 |
| 17429 void UnseededNumberDictionary::DeleteKey(uint32_t key) { |
| 17430 int entry = FindEntry(key); |
| 17431 if (entry == kNotFound) return; |
| 17432 |
| 17433 Factory* factory = GetIsolate()->factory(); |
| 17434 SetEntry(entry, factory->the_hole_value(), factory->the_hole_value()); |
| 17435 ElementRemoved(); |
| 17436 } |
17429 | 17437 |
17430 Handle<SeededNumberDictionary> SeededNumberDictionary::AtNumberPut( | 17438 Handle<SeededNumberDictionary> SeededNumberDictionary::AtNumberPut( |
17431 Handle<SeededNumberDictionary> dictionary, uint32_t key, | 17439 Handle<SeededNumberDictionary> dictionary, uint32_t key, |
17432 Handle<Object> value, bool used_as_prototype) { | 17440 Handle<Object> value, bool used_as_prototype) { |
17433 dictionary->UpdateMaxNumberKey(key, used_as_prototype); | 17441 dictionary->UpdateMaxNumberKey(key, used_as_prototype); |
17434 return AtPut(dictionary, key, value); | 17442 return AtPut(dictionary, key, value); |
17435 } | 17443 } |
17436 | 17444 |
17437 | 17445 |
17438 Handle<UnseededNumberDictionary> UnseededNumberDictionary::AtNumberPut( | 17446 Handle<UnseededNumberDictionary> UnseededNumberDictionary::AtNumberPut( |
(...skipping 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18934 | 18942 |
18935 Object* data_obj = | 18943 Object* data_obj = |
18936 constructor->shared()->get_api_func_data()->access_check_info(); | 18944 constructor->shared()->get_api_func_data()->access_check_info(); |
18937 if (data_obj->IsUndefined(isolate)) return nullptr; | 18945 if (data_obj->IsUndefined(isolate)) return nullptr; |
18938 | 18946 |
18939 return AccessCheckInfo::cast(data_obj); | 18947 return AccessCheckInfo::cast(data_obj); |
18940 } | 18948 } |
18941 | 18949 |
18942 } // namespace internal | 18950 } // namespace internal |
18943 } // namespace v8 | 18951 } // namespace v8 |
OLD | NEW |