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

Side by Side Diff: src/type-info.cc

Issue 2506013005: [Interpreter] Collect String feedback on CompareOps. (Closed)
Patch Set: Fix kAny Created 4 years, 1 month 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/type-hints.cc ('k') | test/cctest/interpreter/test-interpreter.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 #include "src/type-info.h" 5 #include "src/type-info.h"
6 6
7 #include "src/ast/ast.h" 7 #include "src/ast/ast.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/ic/stub-cache.h" 10 #include "src/ic/stub-cache.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 AstType* CompareOpHintToType(CompareOperationHint hint) { 196 AstType* CompareOpHintToType(CompareOperationHint hint) {
197 switch (hint) { 197 switch (hint) {
198 case CompareOperationHint::kNone: 198 case CompareOperationHint::kNone:
199 return AstType::None(); 199 return AstType::None();
200 case CompareOperationHint::kSignedSmall: 200 case CompareOperationHint::kSignedSmall:
201 return AstType::SignedSmall(); 201 return AstType::SignedSmall();
202 case CompareOperationHint::kNumber: 202 case CompareOperationHint::kNumber:
203 return AstType::Number(); 203 return AstType::Number();
204 case CompareOperationHint::kNumberOrOddball: 204 case CompareOperationHint::kNumberOrOddball:
205 return AstType::NumberOrOddball(); 205 return AstType::NumberOrOddball();
206 case CompareOperationHint::kString:
207 return AstType::String();
206 case CompareOperationHint::kAny: 208 case CompareOperationHint::kAny:
207 return AstType::Any(); 209 return AstType::Any();
208 } 210 }
209 UNREACHABLE(); 211 UNREACHABLE();
210 return AstType::None(); 212 return AstType::None();
211 } 213 }
212 214
213 AstType* BinaryOpFeedbackToType(int hint) { 215 AstType* BinaryOpFeedbackToType(int hint) {
214 switch (hint) { 216 switch (hint) {
215 case BinaryOperationFeedback::kNone: 217 case BinaryOperationFeedback::kNone:
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 // Dictionary has been allocated with sufficient size for all elements. 588 // Dictionary has been allocated with sufficient size for all elements.
587 DisallowHeapAllocation no_need_to_resize_dictionary; 589 DisallowHeapAllocation no_need_to_resize_dictionary;
588 HandleScope scope(isolate()); 590 HandleScope scope(isolate());
589 USE(UnseededNumberDictionary::AtNumberPut( 591 USE(UnseededNumberDictionary::AtNumberPut(
590 dictionary_, IdToKey(ast_id), handle(target, isolate()))); 592 dictionary_, IdToKey(ast_id), handle(target, isolate())));
591 } 593 }
592 594
593 595
594 } // namespace internal 596 } // namespace internal
595 } // namespace v8 597 } // namespace v8
OLDNEW
« no previous file with comments | « src/type-hints.cc ('k') | test/cctest/interpreter/test-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698