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

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

Issue 2707873002: Collect type profile for DevTools. (Closed)
Patch Set: Explain why throw is needed in message test. 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
« no previous file with comments | « src/feedback-vector-inl.h ('k') | src/interpreter/bytecode-array-builder.h » ('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 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 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 break; 567 break;
568 } 568 }
569 case FeedbackSlotKind::kCall: 569 case FeedbackSlotKind::kCall:
570 case FeedbackSlotKind::kBinaryOp: 570 case FeedbackSlotKind::kBinaryOp:
571 case FeedbackSlotKind::kCompareOp: 571 case FeedbackSlotKind::kCompareOp:
572 case FeedbackSlotKind::kToBoolean: 572 case FeedbackSlotKind::kToBoolean:
573 case FeedbackSlotKind::kCreateClosure: 573 case FeedbackSlotKind::kCreateClosure:
574 case FeedbackSlotKind::kLiteral: 574 case FeedbackSlotKind::kLiteral:
575 case FeedbackSlotKind::kGeneral: 575 case FeedbackSlotKind::kGeneral:
576 case FeedbackSlotKind::kStoreDataPropertyInLiteral: 576 case FeedbackSlotKind::kStoreDataPropertyInLiteral:
577 case FeedbackSlotKind::kTypeProfile:
577 case FeedbackSlotKind::kInvalid: 578 case FeedbackSlotKind::kInvalid:
578 case FeedbackSlotKind::kKindsNumber: 579 case FeedbackSlotKind::kKindsNumber:
579 UNREACHABLE(); 580 UNREACHABLE();
580 break; 581 break;
581 } 582 }
582 583
583 vector_set_ = true; 584 vector_set_ = true;
584 OnFeedbackChanged(isolate(), GetHostFunction()); 585 OnFeedbackChanged(isolate(), GetHostFunction());
585 } 586 }
586 587
(...skipping 26 matching lines...) Expand all
613 case FeedbackSlotKind::kCall: 614 case FeedbackSlotKind::kCall:
614 case FeedbackSlotKind::kLoadGlobalNotInsideTypeof: 615 case FeedbackSlotKind::kLoadGlobalNotInsideTypeof:
615 case FeedbackSlotKind::kLoadGlobalInsideTypeof: 616 case FeedbackSlotKind::kLoadGlobalInsideTypeof:
616 case FeedbackSlotKind::kBinaryOp: 617 case FeedbackSlotKind::kBinaryOp:
617 case FeedbackSlotKind::kCompareOp: 618 case FeedbackSlotKind::kCompareOp:
618 case FeedbackSlotKind::kToBoolean: 619 case FeedbackSlotKind::kToBoolean:
619 case FeedbackSlotKind::kCreateClosure: 620 case FeedbackSlotKind::kCreateClosure:
620 case FeedbackSlotKind::kLiteral: 621 case FeedbackSlotKind::kLiteral:
621 case FeedbackSlotKind::kGeneral: 622 case FeedbackSlotKind::kGeneral:
622 case FeedbackSlotKind::kStoreDataPropertyInLiteral: 623 case FeedbackSlotKind::kStoreDataPropertyInLiteral:
624 case FeedbackSlotKind::kTypeProfile:
623 case FeedbackSlotKind::kInvalid: 625 case FeedbackSlotKind::kInvalid:
624 case FeedbackSlotKind::kKindsNumber: 626 case FeedbackSlotKind::kKindsNumber:
625 UNREACHABLE(); 627 UNREACHABLE();
626 break; 628 break;
627 } 629 }
628 630
629 vector_set_ = true; 631 vector_set_ = true;
630 OnFeedbackChanged(isolate(), GetHostFunction()); 632 OnFeedbackChanged(isolate(), GetHostFunction());
631 } 633 }
632 634
(...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after
3109 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state()); 3111 DCHECK_EQ(LookupIterator::INTERCEPTOR, it.state());
3110 it.Next(); 3112 it.Next();
3111 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result, 3113 ASSIGN_RETURN_FAILURE_ON_EXCEPTION(isolate, result,
3112 Object::GetProperty(&it)); 3114 Object::GetProperty(&it));
3113 } 3115 }
3114 3116
3115 return *result; 3117 return *result;
3116 } 3118 }
3117 } // namespace internal 3119 } // namespace internal
3118 } // namespace v8 3120 } // namespace v8
OLDNEW
« no previous file with comments | « src/feedback-vector-inl.h ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698