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

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

Issue 2342853002: [TypeFeedbackVector] special ic slots for interpreter compare/binary ops. (Closed)
Patch Set: Code comments. 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
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-hints.h" 5 #include "src/type-hints.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler {
10 9
11 std::ostream& operator<<(std::ostream& os, BinaryOperationHint hint) { 10 std::ostream& operator<<(std::ostream& os, BinaryOperationHint hint) {
12 switch (hint) { 11 switch (hint) {
13 case BinaryOperationHint::kNone: 12 case BinaryOperationHint::kNone:
14 return os << "None"; 13 return os << "None";
15 case BinaryOperationHint::kSignedSmall: 14 case BinaryOperationHint::kSignedSmall:
16 return os << "SignedSmall"; 15 return os << "SignedSmall";
17 case BinaryOperationHint::kSigned32: 16 case BinaryOperationHint::kSigned32:
18 return os << "Signed32"; 17 return os << "Signed32";
19 case BinaryOperationHint::kNumberOrOddball: 18 case BinaryOperationHint::kNumberOrOddball:
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ToBooleanHint const hint = static_cast<ToBooleanHint>(1u << i); 80 ToBooleanHint const hint = static_cast<ToBooleanHint>(1u << i);
82 if (hints & hint) { 81 if (hints & hint) {
83 if (!first) os << "|"; 82 if (!first) os << "|";
84 first = false; 83 first = false;
85 os << hint; 84 os << hint;
86 } 85 }
87 } 86 }
88 return os; 87 return os;
89 } 88 }
90 89
91 } // namespace compiler
92 } // namespace internal 90 } // namespace internal
93 } // namespace v8 91 } // namespace v8
OLDNEW
« src/type-feedback-vector-inl.h ('K') | « src/type-hints.h ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698