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

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

Issue 2707873002: Collect type profile for DevTools. (Closed)
Patch Set: Delete unused var Created 3 years, 9 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 break; 574 break;
575 } 575 }
576 case FeedbackSlotKind::kCall: 576 case FeedbackSlotKind::kCall:
577 case FeedbackSlotKind::kBinaryOp: 577 case FeedbackSlotKind::kBinaryOp:
578 case FeedbackSlotKind::kCompareOp: 578 case FeedbackSlotKind::kCompareOp:
579 case FeedbackSlotKind::kToBoolean: 579 case FeedbackSlotKind::kToBoolean:
580 case FeedbackSlotKind::kCreateClosure: 580 case FeedbackSlotKind::kCreateClosure:
581 case FeedbackSlotKind::kLiteral: 581 case FeedbackSlotKind::kLiteral:
582 case FeedbackSlotKind::kGeneral: 582 case FeedbackSlotKind::kGeneral:
583 case FeedbackSlotKind::kStoreDataPropertyInLiteral: 583 case FeedbackSlotKind::kStoreDataPropertyInLiteral:
584 case FeedbackSlotKind::kTypeProfile:
584 case FeedbackSlotKind::kInvalid: 585 case FeedbackSlotKind::kInvalid:
585 case FeedbackSlotKind::kKindsNumber: 586 case FeedbackSlotKind::kKindsNumber:
586 UNREACHABLE(); 587 UNREACHABLE();
587 break; 588 break;
588 } 589 }
589 590
590 vector_set_ = true; 591 vector_set_ = true;
591 OnFeedbackChanged(isolate(), GetHostFunction()); 592 OnFeedbackChanged(isolate(), GetHostFunction());
592 } 593 }
593 594
(...skipping 27 matching lines...) Expand all
621 case FeedbackSlotKind::kCall: 622 case FeedbackSlotKind::kCall:
622 case FeedbackSlotKind::kLoadGlobalNotInsideTypeof: 623 case FeedbackSlotKind::kLoadGlobalNotInsideTypeof:
623 case FeedbackSlotKind::kLoadGlobalInsideTypeof: 624 case FeedbackSlotKind::kLoadGlobalInsideTypeof:
624 case FeedbackSlotKind::kBinaryOp: 625 case FeedbackSlotKind::kBinaryOp:
625 case FeedbackSlotKind::kCompareOp: 626 case FeedbackSlotKind::kCompareOp:
626 case FeedbackSlotKind::kToBoolean: 627 case FeedbackSlotKind::kToBoolean:
627 case FeedbackSlotKind::kCreateClosure: 628 case FeedbackSlotKind::kCreateClosure:
628 case FeedbackSlotKind::kLiteral: 629 case FeedbackSlotKind::kLiteral:
629 case FeedbackSlotKind::kGeneral: 630 case FeedbackSlotKind::kGeneral:
630 case FeedbackSlotKind::kStoreDataPropertyInLiteral: 631 case FeedbackSlotKind::kStoreDataPropertyInLiteral:
632 case FeedbackSlotKind::kTypeProfile:
631 case FeedbackSlotKind::kInvalid: 633 case FeedbackSlotKind::kInvalid:
632 case FeedbackSlotKind::kKindsNumber: 634 case FeedbackSlotKind::kKindsNumber:
633 UNREACHABLE(); 635 UNREACHABLE();
634 break; 636 break;
635 } 637 }
636 638
637 vector_set_ = true; 639 vector_set_ = true;
638 OnFeedbackChanged(isolate(), GetHostFunction()); 640 OnFeedbackChanged(isolate(), GetHostFunction());
639 } 641 }
640 642
(...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after
3213 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); 3215 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state());
3214 it.Next(); 3216 it.Next();
3215 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, 3217 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result,
3216 Object::GetProperty(&it)); 3218 Object::GetProperty(&it));
3217 } 3219 }
3218 3220
3219 return *result; 3221 return *result;
3220 } 3222 }
3221 } // namespace internal 3223 } // namespace internal
3222 } // namespace v8 3224 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698