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

Side by Side Diff: src/ic/ic.cc

Issue 2707873002: Collect type profile for DevTools. (Closed)
Patch Set: Use constructor name if available. Created 3 years, 10 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/ic/ic.h" 5 #include "src/ic/ic.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "src/accessors.h" 9 #include "src/accessors.h"
10 #include "src/api-arguments-inl.h" 10 #include "src/api-arguments-inl.h"
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 break; 575 break;
576 } 576 }
577 case FeedbackSlotKind::kCall: 577 case FeedbackSlotKind::kCall:
578 case FeedbackSlotKind::kBinaryOp: 578 case FeedbackSlotKind::kBinaryOp:
579 case FeedbackSlotKind::kCompareOp: 579 case FeedbackSlotKind::kCompareOp:
580 case FeedbackSlotKind::kToBoolean: 580 case FeedbackSlotKind::kToBoolean:
581 case FeedbackSlotKind::kCreateClosure: 581 case FeedbackSlotKind::kCreateClosure:
582 case FeedbackSlotKind::kLiteral: 582 case FeedbackSlotKind::kLiteral:
583 case FeedbackSlotKind::kGeneral: 583 case FeedbackSlotKind::kGeneral:
584 case FeedbackSlotKind::kStoreDataPropertyInLiteral: 584 case FeedbackSlotKind::kStoreDataPropertyInLiteral:
585 case FeedbackSlotKind::kTypeProfile:
585 case FeedbackSlotKind::kInvalid: 586 case FeedbackSlotKind::kInvalid:
586 case FeedbackSlotKind::kKindsNumber: 587 case FeedbackSlotKind::kKindsNumber:
587 UNREACHABLE(); 588 UNREACHABLE();
588 break; 589 break;
589 } 590 }
590 591
591 vector_set_ = true; 592 vector_set_ = true;
592 OnFeedbackChanged(isolate(), GetHostFunction()); 593 OnFeedbackChanged(isolate(), GetHostFunction());
593 } 594 }
594 595
(...skipping 27 matching lines...) Expand all
622 case FeedbackSlotKind::kCall: 623 case FeedbackSlotKind::kCall:
623 case FeedbackSlotKind::kLoadGlobalNotInsideTypeof: 624 case FeedbackSlotKind::kLoadGlobalNotInsideTypeof:
624 case FeedbackSlotKind::kLoadGlobalInsideTypeof: 625 case FeedbackSlotKind::kLoadGlobalInsideTypeof:
625 case FeedbackSlotKind::kBinaryOp: 626 case FeedbackSlotKind::kBinaryOp:
626 case FeedbackSlotKind::kCompareOp: 627 case FeedbackSlotKind::kCompareOp:
627 case FeedbackSlotKind::kToBoolean: 628 case FeedbackSlotKind::kToBoolean:
628 case FeedbackSlotKind::kCreateClosure: 629 case FeedbackSlotKind::kCreateClosure:
629 case FeedbackSlotKind::kLiteral: 630 case FeedbackSlotKind::kLiteral:
630 case FeedbackSlotKind::kGeneral: 631 case FeedbackSlotKind::kGeneral:
631 case FeedbackSlotKind::kStoreDataPropertyInLiteral: 632 case FeedbackSlotKind::kStoreDataPropertyInLiteral:
633 case FeedbackSlotKind::kTypeProfile:
632 case FeedbackSlotKind::kInvalid: 634 case FeedbackSlotKind::kInvalid:
633 case FeedbackSlotKind::kKindsNumber: 635 case FeedbackSlotKind::kKindsNumber:
634 UNREACHABLE(); 636 UNREACHABLE();
635 break; 637 break;
636 } 638 }
637 639
638 vector_set_ = true; 640 vector_set_ = true;
639 OnFeedbackChanged(isolate(), GetHostFunction()); 641 OnFeedbackChanged(isolate(), GetHostFunction());
640 } 642 }
641 643
(...skipping 2502 matching lines...) Expand 10 before | Expand all | Expand 10 after
3144 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); 3146 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state());
3145 it.Next(); 3147 it.Next();
3146 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, 3148 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result,
3147 Object::GetProperty(&it)); 3149 Object::GetProperty(&it));
3148 } 3150 }
3149 3151
3150 return *result; 3152 return *result;
3151 } 3153 }
3152 } // namespace internal 3154 } // namespace internal
3153 } // namespace v8 3155 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698