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

Side by Side Diff: src/type-feedback-vector.h

Issue 2511603002: [ic] Support data handlers in LoadGlobalIC. (Closed)
Patch Set: fix Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_TYPE_FEEDBACK_VECTOR_H_ 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_H_
6 #define V8_TYPE_FEEDBACK_VECTOR_H_ 6 #define V8_TYPE_FEEDBACK_VECTOR_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "src/base/logging.h" 10 #include "src/base/logging.h"
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 bool FindHandlers(List<Handle<Object>>* code_list, 548 bool FindHandlers(List<Handle<Object>>* code_list,
549 int length = -1) const final { 549 int length = -1) const final {
550 return length == 0; 550 return length == 0;
551 } 551 }
552 552
553 void ConfigureMegamorphic() override { UNREACHABLE(); } 553 void ConfigureMegamorphic() override { UNREACHABLE(); }
554 void Clear(Code* host); 554 void Clear(Code* host);
555 555
556 void ConfigureUninitialized() override; 556 void ConfigureUninitialized() override;
557 void ConfigurePropertyCellMode(Handle<PropertyCell> cell); 557 void ConfigurePropertyCellMode(Handle<PropertyCell> cell);
558 void ConfigureHandlerMode(Handle<Code> handler); 558 void ConfigureHandlerMode(Handle<Object> handler);
559 559
560 InlineCacheState StateFromFeedback() const override; 560 InlineCacheState StateFromFeedback() const override;
561 }; 561 };
562 562
563 class KeyedLoadICNexus : public FeedbackNexus { 563 class KeyedLoadICNexus : public FeedbackNexus {
564 public: 564 public:
565 KeyedLoadICNexus(Handle<TypeFeedbackVector> vector, FeedbackVectorSlot slot) 565 KeyedLoadICNexus(Handle<TypeFeedbackVector> vector, FeedbackVectorSlot slot)
566 : FeedbackNexus(vector, slot) { 566 : FeedbackNexus(vector, slot) {
567 DCHECK_EQ(FeedbackVectorSlotKind::KEYED_LOAD_IC, vector->GetKind(slot)); 567 DCHECK_EQ(FeedbackVectorSlotKind::KEYED_LOAD_IC, vector->GetKind(slot));
568 } 568 }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 } 715 }
716 }; 716 };
717 717
718 inline BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback); 718 inline BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback);
719 inline CompareOperationHint CompareOperationHintFromFeedback(int type_feedback); 719 inline CompareOperationHint CompareOperationHintFromFeedback(int type_feedback);
720 720
721 } // namespace internal 721 } // namespace internal
722 } // namespace v8 722 } // namespace v8
723 723
724 #endif // V8_TRANSITIONS_H_ 724 #endif // V8_TRANSITIONS_H_
OLDNEW
« src/ic/accessor-assembler.cc ('K') | « src/objects.h ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698