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

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

Issue 2024253002: [stubs] Remove N-argument Hydrogen-based Array constructor stub (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64 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
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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 #include "src/compiler/js-generic-lowering.h" 8 #include "src/compiler/js-generic-lowering.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 #include "src/compiler/machine-operator.h" 10 #include "src/compiler/machine-operator.h"
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 isolate(), GetHoleyElementsKind(elements_kind), override_mode); 443 isolate(), GetHoleyElementsKind(elements_kind), override_mode);
444 CallDescriptor* desc = Linkage::GetStubCallDescriptor( 444 CallDescriptor* desc = Linkage::GetStubCallDescriptor(
445 isolate(), graph()->zone(), stub.GetCallInterfaceDescriptor(), 2, 445 isolate(), graph()->zone(), stub.GetCallInterfaceDescriptor(), 2,
446 CallDescriptor::kNeedsFrameState); 446 CallDescriptor::kNeedsFrameState);
447 node->ReplaceInput(0, jsgraph()->HeapConstant(stub.GetCode())); 447 node->ReplaceInput(0, jsgraph()->HeapConstant(stub.GetCode()));
448 node->InsertInput(graph()->zone(), 2, jsgraph()->HeapConstant(site)); 448 node->InsertInput(graph()->zone(), 2, jsgraph()->HeapConstant(site));
449 node->InsertInput(graph()->zone(), 3, jsgraph()->Int32Constant(1)); 449 node->InsertInput(graph()->zone(), 3, jsgraph()->Int32Constant(1));
450 node->InsertInput(graph()->zone(), 4, jsgraph()->UndefinedConstant()); 450 node->InsertInput(graph()->zone(), 4, jsgraph()->UndefinedConstant());
451 NodeProperties::ChangeOp(node, common()->Call(desc)); 451 NodeProperties::ChangeOp(node, common()->Call(desc));
452 } else { 452 } else {
453 ArrayNArgumentsConstructorStub stub(isolate(), elements_kind, 453 ArrayNArgumentsConstructorStub stub(isolate());
454 override_mode);
455 CallDescriptor* desc = Linkage::GetStubCallDescriptor( 454 CallDescriptor* desc = Linkage::GetStubCallDescriptor(
456 isolate(), graph()->zone(), stub.GetCallInterfaceDescriptor(), 455 isolate(), graph()->zone(), stub.GetCallInterfaceDescriptor(),
457 arity + 1, CallDescriptor::kNeedsFrameState); 456 arity + 1, CallDescriptor::kNeedsFrameState);
458 node->ReplaceInput(0, jsgraph()->HeapConstant(stub.GetCode())); 457 node->ReplaceInput(0, jsgraph()->HeapConstant(stub.GetCode()));
459 node->InsertInput(graph()->zone(), 2, jsgraph()->HeapConstant(site)); 458 node->InsertInput(graph()->zone(), 2, jsgraph()->HeapConstant(site));
460 node->InsertInput(graph()->zone(), 3, jsgraph()->Int32Constant(arity)); 459 node->InsertInput(graph()->zone(), 3, jsgraph()->Int32Constant(arity));
461 node->InsertInput(graph()->zone(), 4, jsgraph()->UndefinedConstant()); 460 node->InsertInput(graph()->zone(), 4, jsgraph()->UndefinedConstant());
462 NodeProperties::ChangeOp(node, common()->Call(desc)); 461 NodeProperties::ChangeOp(node, common()->Call(desc));
463 } 462 }
464 } else { 463 } else {
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 } 740 }
742 741
743 742
744 MachineOperatorBuilder* JSGenericLowering::machine() const { 743 MachineOperatorBuilder* JSGenericLowering::machine() const {
745 return jsgraph()->machine(); 744 return jsgraph()->machine();
746 } 745 }
747 746
748 } // namespace compiler 747 } // namespace compiler
749 } // namespace internal 748 } // namespace internal
750 } // namespace v8 749 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698