OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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-create-lowering.h" | 5 #include "src/compiler/js-create-lowering.h" |
6 | 6 |
7 #include "src/allocation-site-scopes.h" | 7 #include "src/allocation-site-scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
10 #include "src/compiler/access-builder.h" | 10 #include "src/compiler/access-builder.h" |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 node->InsertInput(graph()->zone(), 2, jsgraph()->HeapConstant(site)); | 548 node->InsertInput(graph()->zone(), 2, jsgraph()->HeapConstant(site)); |
549 node->InsertInput(graph()->zone(), 3, jsgraph()->Int32Constant(1)); | 549 node->InsertInput(graph()->zone(), 3, jsgraph()->Int32Constant(1)); |
550 node->InsertInput(graph()->zone(), 4, jsgraph()->UndefinedConstant()); | 550 node->InsertInput(graph()->zone(), 4, jsgraph()->UndefinedConstant()); |
551 NodeProperties::ChangeOp(node, common()->Call(desc)); | 551 NodeProperties::ChangeOp(node, common()->Call(desc)); |
552 return Changed(node); | 552 return Changed(node); |
553 } | 553 } |
554 | 554 |
555 Node* effect = NodeProperties::GetEffectInput(node); | 555 Node* effect = NodeProperties::GetEffectInput(node); |
556 Node* control = NodeProperties::GetControlInput(node); | 556 Node* control = NodeProperties::GetControlInput(node); |
557 Node* length = NodeProperties::GetValueInput(node, 2); | 557 Node* length = NodeProperties::GetValueInput(node, 2); |
558 Node* equal = graph()->NewNode(simplified()->ReferenceEqual(Type::Any()), | 558 Node* equal = graph()->NewNode(simplified()->ReferenceEqual(), length, |
559 length, jsgraph()->ZeroConstant()); | 559 jsgraph()->ZeroConstant()); |
560 | 560 |
561 Node* branch = | 561 Node* branch = |
562 graph()->NewNode(common()->Branch(BranchHint::kFalse), equal, control); | 562 graph()->NewNode(common()->Branch(BranchHint::kFalse), equal, control); |
563 Node* call_holey; | 563 Node* call_holey; |
564 Node* call_packed; | 564 Node* call_packed; |
565 Node* if_success_packed; | 565 Node* if_success_packed; |
566 Node* if_success_holey; | 566 Node* if_success_holey; |
567 Node* context = NodeProperties::GetContextInput(node); | 567 Node* context = NodeProperties::GetContextInput(node); |
568 Node* frame_state = NodeProperties::GetFrameStateInput(node); | 568 Node* frame_state = NodeProperties::GetFrameStateInput(node); |
569 Node* if_equal = graph()->NewNode(common()->IfTrue(), branch); | 569 Node* if_equal = graph()->NewNode(common()->IfTrue(), branch); |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1262 return jsgraph()->simplified(); | 1262 return jsgraph()->simplified(); |
1263 } | 1263 } |
1264 | 1264 |
1265 MachineOperatorBuilder* JSCreateLowering::machine() const { | 1265 MachineOperatorBuilder* JSCreateLowering::machine() const { |
1266 return jsgraph()->machine(); | 1266 return jsgraph()->machine(); |
1267 } | 1267 } |
1268 | 1268 |
1269 } // namespace compiler | 1269 } // namespace compiler |
1270 } // namespace internal | 1270 } // namespace internal |
1271 } // namespace v8 | 1271 } // namespace v8 |
OLD | NEW |