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

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

Issue 2221833002: [Interpreter] Collect type feedback for subtract operation and pass it to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments from Ross. 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/type-hint-analyzer.h ('k') | src/globals.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 default: 131 default:
132 // Ignore the remaining code objects. 132 // Ignore the remaining code objects.
133 break; 133 break;
134 } 134 }
135 } 135 }
136 return new (zone()) TypeHintAnalysis(infos, zone()); 136 return new (zone()) TypeHintAnalysis(infos, zone());
137 } 137 }
138 138
139 // Helper function to transform the feedback to BinaryOperationHints
140 BinaryOperationHints::Hint BinaryOperationHintFromFeedback(int type_feedback) {
141 switch (type_feedback) {
142 case BinaryOperationFeedback::kSignedSmall:
143 return BinaryOperationHints::kSigned32;
144 case BinaryOperationFeedback::kNumber:
145 return BinaryOperationHints::kNumberOrOddball;
146 case BinaryOperationFeedback::kAny:
147 default:
148 return BinaryOperationHints::kAny;
149 }
150 return BinaryOperationHints::kAny;
151 }
152
139 } // namespace compiler 153 } // namespace compiler
140 } // namespace internal 154 } // namespace internal
141 } // namespace v8 155 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/type-hint-analyzer.h ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698