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

Side by Side Diff: src/code-stub-assembler.cc

Issue 2373683002: [stubs] KeyedLoadIC_Megamorphic: use stub cache lookup as fallback (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | src/ic/ic.cc » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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/code-stub-assembler.h" 5 #include "src/code-stub-assembler.h"
6 #include "src/code-factory.h" 6 #include "src/code-factory.h"
7 #include "src/frames-inl.h" 7 #include "src/frames-inl.h"
8 #include "src/frames.h" 8 #include "src/frames.h"
9 #include "src/ic/handler-configuration.h" 9 #include "src/ic/handler-configuration.h"
10 #include "src/ic/stub-cache.h" 10 #include "src/ic/stub-cache.h"
(...skipping 4851 matching lines...) Expand 10 before | Expand all | Expand 10 after
4862 // See also TryLookupProperty() which has the same limitation. 4862 // See also TryLookupProperty() which has the same limitation.
4863 const int32_t kMaxLinear = 210; 4863 const int32_t kMaxLinear = 210;
4864 Label stub_cache(this); 4864 Label stub_cache(this);
4865 Node* bitfield3 = LoadMapBitField3(receiver_map); 4865 Node* bitfield3 = LoadMapBitField3(receiver_map);
4866 Node* nof = BitFieldDecodeWord<Map::NumberOfOwnDescriptorsBits>(bitfield3); 4866 Node* nof = BitFieldDecodeWord<Map::NumberOfOwnDescriptorsBits>(bitfield3);
4867 GotoIf(UintPtrGreaterThan(nof, IntPtrConstant(kMaxLinear)), &stub_cache); 4867 GotoIf(UintPtrGreaterThan(nof, IntPtrConstant(kMaxLinear)), &stub_cache);
4868 Node* descriptors = LoadMapDescriptors(receiver_map); 4868 Node* descriptors = LoadMapDescriptors(receiver_map);
4869 Variable var_name_index(this, MachineType::PointerRepresentation()); 4869 Variable var_name_index(this, MachineType::PointerRepresentation());
4870 Label if_descriptor_found(this); 4870 Label if_descriptor_found(this);
4871 DescriptorLookupLinear(key, descriptors, nof, &if_descriptor_found, 4871 DescriptorLookupLinear(key, descriptors, nof, &if_descriptor_found,
4872 &var_name_index, &slow); 4872 &var_name_index, &stub_cache);
4873 4873
4874 Bind(&if_descriptor_found); 4874 Bind(&if_descriptor_found);
4875 { 4875 {
4876 LoadPropertyFromFastObject(receiver, receiver_map, descriptors, 4876 LoadPropertyFromFastObject(receiver, receiver_map, descriptors,
4877 var_name_index.value(), &var_details, 4877 var_name_index.value(), &var_details,
4878 &var_value); 4878 &var_value);
4879 Goto(&if_found_on_receiver); 4879 Goto(&if_found_on_receiver);
4880 } 4880 }
4881 4881
4882 Bind(&stub_cache); 4882 Bind(&stub_cache);
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
5658 Heap::kTheHoleValueRootIndex); 5658 Heap::kTheHoleValueRootIndex);
5659 5659
5660 // Store the WeakCell in the feedback vector. 5660 // Store the WeakCell in the feedback vector.
5661 StoreFixedArrayElement(feedback_vector, slot, cell, UPDATE_WRITE_BARRIER, 5661 StoreFixedArrayElement(feedback_vector, slot, cell, UPDATE_WRITE_BARRIER,
5662 CodeStubAssembler::SMI_PARAMETERS); 5662 CodeStubAssembler::SMI_PARAMETERS);
5663 return cell; 5663 return cell;
5664 } 5664 }
5665 5665
5666 } // namespace internal 5666 } // namespace internal
5667 } // namespace v8 5667 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698