| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |