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

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

Issue 2358373002: [stubs] KeyedLoadIC_Megamorphic: inline fast-property lookups (Closed)
Patch Set: rebase Created 4 years, 3 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/code-stub-assembler.cc » ('j') | src/code-stub-assembler.cc » ('J')
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 #ifndef V8_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 compiler::Node* GetFixedAarrayAllocationSize(compiler::Node* element_count, 741 compiler::Node* GetFixedAarrayAllocationSize(compiler::Node* element_count,
742 ElementsKind kind, 742 ElementsKind kind,
743 ParameterMode mode) { 743 ParameterMode mode) {
744 return ElementOffsetFromIndex(element_count, kind, mode, 744 return ElementOffsetFromIndex(element_count, kind, mode,
745 FixedArray::kHeaderSize); 745 FixedArray::kHeaderSize);
746 } 746 }
747 747
748 private: 748 private:
749 enum ElementSupport { kOnlyProperties, kSupportElements }; 749 enum ElementSupport { kOnlyProperties, kSupportElements };
750 750
751 void DescriptorLookupLinear(compiler::Node* unique_name,
752 compiler::Node* descriptors, compiler::Node* nof,
753 Label* if_found, Variable* var_name_index,
754 Label* if_not_found);
755
751 void HandleLoadICHandlerCase( 756 void HandleLoadICHandlerCase(
752 const LoadICParameters* p, compiler::Node* handler, Label* miss, 757 const LoadICParameters* p, compiler::Node* handler, Label* miss,
753 ElementSupport support_elements = kOnlyProperties); 758 ElementSupport support_elements = kOnlyProperties);
754 compiler::Node* TryToIntptr(compiler::Node* key, Label* miss); 759 compiler::Node* TryToIntptr(compiler::Node* key, Label* miss);
755 void EmitFastElementsBoundsCheck(compiler::Node* object, 760 void EmitFastElementsBoundsCheck(compiler::Node* object,
756 compiler::Node* elements, 761 compiler::Node* elements,
757 compiler::Node* intptr_index, 762 compiler::Node* intptr_index,
758 compiler::Node* is_jsarray_condition, 763 compiler::Node* is_jsarray_condition,
759 Label* miss); 764 Label* miss);
760 void EmitElementLoad(compiler::Node* object, compiler::Node* elements, 765 void EmitElementLoad(compiler::Node* object, compiler::Node* elements,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 Label* bailout); 802 Label* bailout);
798 803
799 static const int kElementLoopUnrollThreshold = 8; 804 static const int kElementLoopUnrollThreshold = 8;
800 }; 805 };
801 806
802 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 807 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
803 808
804 } // namespace internal 809 } // namespace internal
805 } // namespace v8 810 } // namespace v8
806 #endif // V8_CODE_STUB_ASSEMBLER_H_ 811 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | src/code-stub-assembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698