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

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

Issue 2325083003: Record call counts also for megamorphic calls. (Closed)
Patch Set: Code comments. 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 | « src/mips64/code-stubs-mips64.cc ('k') | src/type-feedback-vector.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 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 : FeedbackNexus(vector, slot) { 452 : FeedbackNexus(vector, slot) {
453 DCHECK_EQ(FeedbackVectorSlotKind::CALL_IC, vector->GetKind(slot)); 453 DCHECK_EQ(FeedbackVectorSlotKind::CALL_IC, vector->GetKind(slot));
454 } 454 }
455 CallICNexus(TypeFeedbackVector* vector, FeedbackVectorSlot slot) 455 CallICNexus(TypeFeedbackVector* vector, FeedbackVectorSlot slot)
456 : FeedbackNexus(vector, slot) { 456 : FeedbackNexus(vector, slot) {
457 DCHECK_EQ(FeedbackVectorSlotKind::CALL_IC, vector->GetKind(slot)); 457 DCHECK_EQ(FeedbackVectorSlotKind::CALL_IC, vector->GetKind(slot));
458 } 458 }
459 459
460 void Clear(Code* host); 460 void Clear(Code* host);
461 461
462 void ConfigureUninitialized() override;
462 void ConfigureMonomorphicArray(); 463 void ConfigureMonomorphicArray();
463 void ConfigureMonomorphic(Handle<JSFunction> function); 464 void ConfigureMonomorphic(Handle<JSFunction> function);
464 void ConfigureMegamorphic() final; 465 void ConfigureMegamorphic() final;
465 void ConfigureMegamorphic(int call_count); 466 void ConfigureMegamorphic(int call_count);
466 467
467 InlineCacheState StateFromFeedback() const final; 468 InlineCacheState StateFromFeedback() const final;
468 469
469 int ExtractMaps(MapHandleList* maps) const final { 470 int ExtractMaps(MapHandleList* maps) const final {
470 // CallICs don't record map feedback. 471 // CallICs don't record map feedback.
471 return 0; 472 return 0;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 KeyedAccessStoreMode GetKeyedAccessStoreMode() const; 626 KeyedAccessStoreMode GetKeyedAccessStoreMode() const;
626 IcCheckType GetKeyType() const; 627 IcCheckType GetKeyType() const;
627 628
628 InlineCacheState StateFromFeedback() const override; 629 InlineCacheState StateFromFeedback() const override;
629 Name* FindFirstName() const override; 630 Name* FindFirstName() const override;
630 }; 631 };
631 } // namespace internal 632 } // namespace internal
632 } // namespace v8 633 } // namespace v8
633 634
634 #endif // V8_TRANSITIONS_H_ 635 #endif // V8_TRANSITIONS_H_
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/type-feedback-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698