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

Side by Side Diff: src/compiler/mips/instruction-selector-mips.cc

Issue 1578723002: [turbofan] Build s/NULL/nullptr/g and CHECK(x != nullptr) to CHECK_NOT_NULL(x). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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/mips/code-generator-mips.cc ('k') | src/compiler/mips64/code-generator-mips64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/base/bits.h" 6 #include "src/base/bits.h"
7 #include "src/compiler/instruction-selector-impl.h" 7 #include "src/compiler/instruction-selector-impl.h"
8 #include "src/compiler/node-matchers.h" 8 #include "src/compiler/node-matchers.h"
9 #include "src/compiler/node-properties.h" 9 #include "src/compiler/node-properties.h"
10 10
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 return VisitFloat64Compare(selector, value, cont); 1102 return VisitFloat64Compare(selector, value, cont);
1103 case IrOpcode::kFloat64LessThanOrEqual: 1103 case IrOpcode::kFloat64LessThanOrEqual:
1104 cont->OverwriteAndNegateIfEqual(kUnsignedLessThanOrEqual); 1104 cont->OverwriteAndNegateIfEqual(kUnsignedLessThanOrEqual);
1105 return VisitFloat64Compare(selector, value, cont); 1105 return VisitFloat64Compare(selector, value, cont);
1106 case IrOpcode::kProjection: 1106 case IrOpcode::kProjection:
1107 // Check if this is the overflow output projection of an 1107 // Check if this is the overflow output projection of an
1108 // <Operation>WithOverflow node. 1108 // <Operation>WithOverflow node.
1109 if (ProjectionIndexOf(value->op()) == 1u) { 1109 if (ProjectionIndexOf(value->op()) == 1u) {
1110 // We cannot combine the <Operation>WithOverflow with this branch 1110 // We cannot combine the <Operation>WithOverflow with this branch
1111 // unless the 0th projection (the use of the actual value of the 1111 // unless the 0th projection (the use of the actual value of the
1112 // <Operation> is either NULL, which means there's no use of the 1112 // <Operation> is either nullptr, which means there's no use of the
1113 // actual value, or was already defined, which means it is scheduled 1113 // actual value, or was already defined, which means it is scheduled
1114 // *AFTER* this branch). 1114 // *AFTER* this branch).
1115 Node* const node = value->InputAt(0); 1115 Node* const node = value->InputAt(0);
1116 Node* const result = NodeProperties::FindProjection(node, 0); 1116 Node* const result = NodeProperties::FindProjection(node, 0);
1117 if (!result || selector->IsDefined(result)) { 1117 if (!result || selector->IsDefined(result)) {
1118 switch (node->opcode()) { 1118 switch (node->opcode()) {
1119 case IrOpcode::kInt32AddWithOverflow: 1119 case IrOpcode::kInt32AddWithOverflow:
1120 cont->OverwriteAndNegateIfEqual(kOverflow); 1120 cont->OverwriteAndNegateIfEqual(kOverflow);
1121 return VisitBinop(selector, node, kMipsAddOvf, cont); 1121 return VisitBinop(selector, node, kMipsAddOvf, cont);
1122 case IrOpcode::kInt32SubWithOverflow: 1122 case IrOpcode::kInt32SubWithOverflow:
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 MachineOperatorBuilder::kFloat32Max | 1327 MachineOperatorBuilder::kFloat32Max |
1328 MachineOperatorBuilder::kFloat32RoundDown | 1328 MachineOperatorBuilder::kFloat32RoundDown |
1329 MachineOperatorBuilder::kFloat32RoundUp | 1329 MachineOperatorBuilder::kFloat32RoundUp |
1330 MachineOperatorBuilder::kFloat32RoundTruncate | 1330 MachineOperatorBuilder::kFloat32RoundTruncate |
1331 MachineOperatorBuilder::kFloat32RoundTiesEven; 1331 MachineOperatorBuilder::kFloat32RoundTiesEven;
1332 } 1332 }
1333 1333
1334 } // namespace compiler 1334 } // namespace compiler
1335 } // namespace internal 1335 } // namespace internal
1336 } // namespace v8 1336 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/code-generator-mips.cc ('k') | src/compiler/mips64/code-generator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698