Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2256)

Side by Side Diff: src/objects.cc

Issue 2147433002: [ic] [stubs] Don't use Code::flags in megamorphic stub cache hash computations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@split-stub-cache
Patch Set: Improved stub cache tests and the fixes. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.h ('k') | src/type-info.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/type-info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698