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

Side by Side Diff: src/compiler/type-hint-analyzer.cc

Issue 2235133003: [interpreter] Collect type feedback from bitwise binary ops handlers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed mapping kSignedSmall -> kSigned32 to kSignedSmall -> kSignedSmall. Created 4 years, 4 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/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/interpreter.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/compiler/type-hint-analyzer.h" 5 #include "src/compiler/type-hint-analyzer.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compiler/type-hints.h" 9 #include "src/compiler/type-hints.h"
10 #include "src/ic/ic-state.h" 10 #include "src/ic/ic-state.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 break; 129 break;
130 } 130 }
131 } 131 }
132 return new (zone()) TypeHintAnalysis(infos, zone()); 132 return new (zone()) TypeHintAnalysis(infos, zone());
133 } 133 }
134 134
135 // Helper function to transform the feedback to BinaryOperationHint. 135 // Helper function to transform the feedback to BinaryOperationHint.
136 BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback) { 136 BinaryOperationHint BinaryOperationHintFromFeedback(int type_feedback) {
137 switch (type_feedback) { 137 switch (type_feedback) {
138 case BinaryOperationFeedback::kSignedSmall: 138 case BinaryOperationFeedback::kSignedSmall:
139 return BinaryOperationHint::kSigned32; 139 return BinaryOperationHint::kSignedSmall;
140 case BinaryOperationFeedback::kNumber: 140 case BinaryOperationFeedback::kNumber:
141 return BinaryOperationHint::kNumberOrOddball; 141 return BinaryOperationHint::kNumberOrOddball;
142 case BinaryOperationFeedback::kAny: 142 case BinaryOperationFeedback::kAny:
143 default: 143 default:
144 return BinaryOperationHint::kAny; 144 return BinaryOperationHint::kAny;
145 } 145 }
146 UNREACHABLE(); 146 UNREACHABLE();
147 return BinaryOperationHint::kNone; 147 return BinaryOperationHint::kNone;
148 } 148 }
149 149
150 } // namespace compiler 150 } // namespace compiler
151 } // namespace internal 151 } // namespace internal
152 } // namespace v8 152 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698