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

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

Issue 2035893004: [turbofan] Introduce a dedicated CheckBounds operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 4 years, 6 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/opcodes.h ('k') | src/compiler/simplified-operator.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 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/address-map.h" 9 #include "src/address-map.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 jsgraph_->isolate(), jsgraph_->zone(), callable.descriptor(), 0, 1526 jsgraph_->isolate(), jsgraph_->zone(), callable.descriptor(), 0,
1527 flags, properties); 1527 flags, properties);
1528 node->InsertInput(jsgraph_->zone(), 0, 1528 node->InsertInput(jsgraph_->zone(), 0,
1529 jsgraph_->HeapConstant(callable.code())); 1529 jsgraph_->HeapConstant(callable.code()));
1530 node->AppendInput(jsgraph_->zone(), jsgraph_->NoContextConstant()); 1530 node->AppendInput(jsgraph_->zone(), jsgraph_->NoContextConstant());
1531 node->AppendInput(jsgraph_->zone(), jsgraph_->graph()->start()); 1531 node->AppendInput(jsgraph_->zone(), jsgraph_->graph()->start());
1532 NodeProperties::ChangeOp(node, jsgraph_->common()->Call(desc)); 1532 NodeProperties::ChangeOp(node, jsgraph_->common()->Call(desc));
1533 } 1533 }
1534 return; 1534 return;
1535 } 1535 }
1536
1537 case IrOpcode::kCheckBounds: {
1538 VisitBinop(node, UseInfo::CheckedSigned32AsWord32(),
1539 UseInfo::TruncatingWord32(), MachineRepresentation::kWord32);
1540 return;
1541 }
1542
1536 case IrOpcode::kAllocate: { 1543 case IrOpcode::kAllocate: {
1537 ProcessInput(node, 0, UseInfo::TruncatingWord32()); 1544 ProcessInput(node, 0, UseInfo::TruncatingWord32());
1538 ProcessRemainingInputs(node, 1); 1545 ProcessRemainingInputs(node, 1);
1539 SetOutput(node, MachineRepresentation::kTagged); 1546 SetOutput(node, MachineRepresentation::kTagged);
1540 return; 1547 return;
1541 } 1548 }
1542 case IrOpcode::kLoadField: { 1549 case IrOpcode::kLoadField: {
1543 FieldAccess access = FieldAccessOf(node->op()); 1550 FieldAccess access = FieldAccessOf(node->op());
1544 ProcessInput(node, 0, UseInfoForBasePointer(access)); 1551 ProcessInput(node, 0, UseInfoForBasePointer(access));
1545 ProcessRemainingInputs(node, 1); 1552 ProcessRemainingInputs(node, 1);
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after
2880 isolate(), graph()->zone(), callable.descriptor(), 0, flags, 2887 isolate(), graph()->zone(), callable.descriptor(), 0, flags,
2881 Operator::kNoProperties); 2888 Operator::kNoProperties);
2882 to_number_operator_.set(common()->Call(desc)); 2889 to_number_operator_.set(common()->Call(desc));
2883 } 2890 }
2884 return to_number_operator_.get(); 2891 return to_number_operator_.get();
2885 } 2892 }
2886 2893
2887 } // namespace compiler 2894 } // namespace compiler
2888 } // namespace internal 2895 } // namespace internal
2889 } // namespace v8 2896 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | src/compiler/simplified-operator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698