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

Side by Side Diff: src/compiler/simplified-lowering.cc

Issue 1123213002: [turbofan] Connect non-terminating loops via Terminate. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/scheduler.cc ('k') | src/compiler/typer.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/compiler/simplified-lowering.h" 5 #include "src/compiler/simplified-lowering.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 case IrOpcode::kStart: 493 case IrOpcode::kStart:
494 case IrOpcode::kDead: 494 case IrOpcode::kDead:
495 return VisitLeaf(node, 0); 495 return VisitLeaf(node, 0);
496 case IrOpcode::kParameter: { 496 case IrOpcode::kParameter: {
497 // TODO(titzer): use representation from linkage. 497 // TODO(titzer): use representation from linkage.
498 Type* upper = NodeProperties::GetBounds(node).upper; 498 Type* upper = NodeProperties::GetBounds(node).upper;
499 ProcessInput(node, 0, 0); 499 ProcessInput(node, 0, 0);
500 SetOutput(node, kRepTagged | changer_->TypeFromUpperBound(upper)); 500 SetOutput(node, kRepTagged | changer_->TypeFromUpperBound(upper));
501 return; 501 return;
502 } 502 }
503 case IrOpcode::kAlways:
504 return VisitLeaf(node, kRepBit);
505 case IrOpcode::kInt32Constant: 503 case IrOpcode::kInt32Constant:
506 return VisitLeaf(node, kRepWord32); 504 return VisitLeaf(node, kRepWord32);
507 case IrOpcode::kInt64Constant: 505 case IrOpcode::kInt64Constant:
508 return VisitLeaf(node, kRepWord64); 506 return VisitLeaf(node, kRepWord64);
509 case IrOpcode::kFloat32Constant: 507 case IrOpcode::kFloat32Constant:
510 return VisitLeaf(node, kRepFloat32); 508 return VisitLeaf(node, kRepFloat32);
511 case IrOpcode::kFloat64Constant: 509 case IrOpcode::kFloat64Constant:
512 return VisitLeaf(node, kRepFloat64); 510 return VisitLeaf(node, kRepFloat64);
513 case IrOpcode::kExternalConstant: 511 case IrOpcode::kExternalConstant:
514 return VisitLeaf(node, kMachPtr); 512 return VisitLeaf(node, kMachPtr);
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 1607
1610 void SimplifiedLowering::DoStringLessThanOrEqual(Node* node) { 1608 void SimplifiedLowering::DoStringLessThanOrEqual(Node* node) {
1611 node->set_op(machine()->IntLessThanOrEqual()); 1609 node->set_op(machine()->IntLessThanOrEqual());
1612 node->ReplaceInput(0, StringComparison(node, true)); 1610 node->ReplaceInput(0, StringComparison(node, true));
1613 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL)); 1611 node->ReplaceInput(1, jsgraph()->SmiConstant(EQUAL));
1614 } 1612 }
1615 1613
1616 } // namespace compiler 1614 } // namespace compiler
1617 } // namespace internal 1615 } // namespace internal
1618 } // namespace v8 1616 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/scheduler.cc ('k') | src/compiler/typer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698