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

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

Issue 2893263002: [turbofan] Add Symbol feedback to Equal/StrictEqual. (Closed)
Patch Set: Created 3 years, 7 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/js-operator.cc ('k') | src/compiler/js-typed-lowering.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 2017 the V8 project authors. All rights reserved. 1 // Copyright 2017 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/js-type-hint-lowering.h" 5 #include "src/compiler/js-type-hint-lowering.h"
6 6
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/operator-properties.h" 8 #include "src/compiler/operator-properties.h"
9 #include "src/compiler/simplified-operator.h" 9 #include "src/compiler/simplified-operator.h"
10 #include "src/feedback-vector.h" 10 #include "src/feedback-vector.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 return true; 75 return true;
76 case CompareOperationHint::kNumber: 76 case CompareOperationHint::kNumber:
77 *hint = NumberOperationHint::kNumber; 77 *hint = NumberOperationHint::kNumber;
78 return true; 78 return true;
79 case CompareOperationHint::kNumberOrOddball: 79 case CompareOperationHint::kNumberOrOddball:
80 *hint = NumberOperationHint::kNumberOrOddball; 80 *hint = NumberOperationHint::kNumberOrOddball;
81 return true; 81 return true;
82 case CompareOperationHint::kAny: 82 case CompareOperationHint::kAny:
83 case CompareOperationHint::kNone: 83 case CompareOperationHint::kNone:
84 case CompareOperationHint::kString: 84 case CompareOperationHint::kString:
85 case CompareOperationHint::kSymbol:
85 case CompareOperationHint::kReceiver: 86 case CompareOperationHint::kReceiver:
86 case CompareOperationHint::kInternalizedString: 87 case CompareOperationHint::kInternalizedString:
87 break; 88 break;
88 } 89 }
89 return false; 90 return false;
90 } 91 }
91 92
92 const Operator* SpeculativeNumberOp(NumberOperationHint hint) { 93 const Operator* SpeculativeNumberOp(NumberOperationHint hint) {
93 switch (op_->opcode()) { 94 switch (op_->opcode()) {
94 case IrOpcode::kJSAdd: 95 case IrOpcode::kJSAdd:
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 Node* frame_state = NodeProperties::FindFrameStateBefore(deoptimize); 322 Node* frame_state = NodeProperties::FindFrameStateBefore(deoptimize);
322 deoptimize->ReplaceInput(0, frame_state); 323 deoptimize->ReplaceInput(0, frame_state);
323 return deoptimize; 324 return deoptimize;
324 } 325 }
325 return nullptr; 326 return nullptr;
326 } 327 }
327 328
328 } // namespace compiler 329 } // namespace compiler
329 } // namespace internal 330 } // namespace internal
330 } // namespace v8 331 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698