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

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

Issue 2407923002: Revert of [Interpreter] Collect feedback about Oddballs in Subtract Stub. (Closed)
Patch Set: Created 4 years, 2 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/globals.h ('k') | src/type-info.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 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 #ifndef V8_TYPE_FEEDBACK_VECTOR_INL_H_ 5 #ifndef V8_TYPE_FEEDBACK_VECTOR_INL_H_
6 #define V8_TYPE_FEEDBACK_VECTOR_INL_H_ 6 #define V8_TYPE_FEEDBACK_VECTOR_INL_H_
7 7
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/type-feedback-vector.h" 9 #include "src/type-feedback-vector.h"
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 122
123 // Helper function to transform the feedback to BinaryOperationHint. 123 // Helper function to transform the feedback to BinaryOperationHint.
124 BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback) { 124 BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback) {
125 switch (type_feedback) { 125 switch (type_feedback) {
126 case BinaryOperationFeedback::kNone: 126 case BinaryOperationFeedback::kNone:
127 return BinaryOperationHint::kNone; 127 return BinaryOperationHint::kNone;
128 case BinaryOperationFeedback::kSignedSmall: 128 case BinaryOperationFeedback::kSignedSmall:
129 return BinaryOperationHint::kSignedSmall; 129 return BinaryOperationHint::kSignedSmall;
130 case BinaryOperationFeedback::kNumber: 130 case BinaryOperationFeedback::kNumber:
131 case BinaryOperationFeedback::kNumberOrOddball:
132 return BinaryOperationHint::kNumberOrOddball; 131 return BinaryOperationHint::kNumberOrOddball;
133 case BinaryOperationFeedback::kString: 132 case BinaryOperationFeedback::kString:
134 return BinaryOperationHint::kString; 133 return BinaryOperationHint::kString;
135 case BinaryOperationFeedback::kAny: 134 case BinaryOperationFeedback::kAny:
136 default: 135 default:
137 return BinaryOperationHint::kAny; 136 return BinaryOperationHint::kAny;
138 } 137 }
139 UNREACHABLE(); 138 UNREACHABLE();
140 return BinaryOperationHint::kNone; 139 return BinaryOperationHint::kNone;
141 } 140 }
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 int index = vector()->GetIndex(slot()) + 1; 278 int index = vector()->GetIndex(slot()) + 1;
280 vector()->set(index, feedback_extra, mode); 279 vector()->set(index, feedback_extra, mode);
281 } 280 }
282 281
283 282
284 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); } 283 Isolate* FeedbackNexus::GetIsolate() const { return vector()->GetIsolate(); }
285 } // namespace internal 284 } // namespace internal
286 } // namespace v8 285 } // namespace v8
287 286
288 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_ 287 #endif // V8_TYPE_FEEDBACK_VECTOR_INL_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698