mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 14:32:24 +00:00
Remove a dead load and smi untag on all platforms.
BUG= R=kustermann@google.com, vegorov@google.com Review URL: https://codereview.chromium.org/2520223003 .
This commit is contained in:
parent
180107cec3
commit
3e969cf241
5 changed files with 0 additions and 14 deletions
|
@ -798,9 +798,6 @@ void FlowGraphCompiler::CopyParameters() {
|
|||
}
|
||||
// Generate code handling each optional parameter in alphabetical order.
|
||||
__ ldr(NOTFP, FieldAddress(R4, ArgumentsDescriptor::count_offset()));
|
||||
__ ldr(R6,
|
||||
FieldAddress(R4, ArgumentsDescriptor::positional_count_offset()));
|
||||
__ SmiUntag(R6);
|
||||
// Let NOTFP point to the first passed argument, i.e. to
|
||||
// fp[kParamEndSlotFromFp + num_args - 0]; num_args (NOTFP) is Smi.
|
||||
__ add(NOTFP, FP, Operand(NOTFP, LSL, 1));
|
||||
|
|
|
@ -791,9 +791,6 @@ void FlowGraphCompiler::CopyParameters() {
|
|||
}
|
||||
// Generate code handling each optional parameter in alphabetical order.
|
||||
__ LoadFieldFromOffset(R7, R4, ArgumentsDescriptor::count_offset());
|
||||
__ LoadFieldFromOffset(R8, R4,
|
||||
ArgumentsDescriptor::positional_count_offset());
|
||||
__ SmiUntag(R8);
|
||||
// Let R7 point to the first passed argument, i.e. to
|
||||
// fp[kParamEndSlotFromFp + num_args - 0]; num_args (R7) is Smi.
|
||||
__ add(R7, FP, Operand(R7, LSL, 2));
|
||||
|
|
|
@ -809,9 +809,6 @@ void FlowGraphCompiler::CopyParameters() {
|
|||
}
|
||||
// Generate code handling each optional parameter in alphabetical order.
|
||||
__ movl(EBX, FieldAddress(EDX, ArgumentsDescriptor::count_offset()));
|
||||
__ movl(ECX,
|
||||
FieldAddress(EDX, ArgumentsDescriptor::positional_count_offset()));
|
||||
__ SmiUntag(ECX);
|
||||
// Let EBX point to the first passed argument, i.e. to
|
||||
// fp[kParamEndSlotFromFp + num_args - 0]; num_args (EBX) is Smi.
|
||||
__ leal(EBX, Address(EBP, EBX, TIMES_2, kParamEndSlotFromFp * kWordSize));
|
||||
|
|
|
@ -808,8 +808,6 @@ void FlowGraphCompiler::CopyParameters() {
|
|||
}
|
||||
// Generate code handling each optional parameter in alphabetical order.
|
||||
__ lw(T1, FieldAddress(S4, ArgumentsDescriptor::count_offset()));
|
||||
__ lw(T2, FieldAddress(S4, ArgumentsDescriptor::positional_count_offset()));
|
||||
__ SmiUntag(T2);
|
||||
// Let T1 point to the first passed argument, i.e. to
|
||||
// fp[kParamEndSlotFromFp + num_args - 0]; num_args (T1) is Smi.
|
||||
__ sll(T3, T1, 1);
|
||||
|
|
|
@ -800,9 +800,6 @@ void FlowGraphCompiler::CopyParameters() {
|
|||
}
|
||||
// Generate code handling each optional parameter in alphabetical order.
|
||||
__ movq(RBX, FieldAddress(R10, ArgumentsDescriptor::count_offset()));
|
||||
__ movq(RCX,
|
||||
FieldAddress(R10, ArgumentsDescriptor::positional_count_offset()));
|
||||
__ SmiUntag(RCX);
|
||||
// Let RBX point to the first passed argument, i.e. to
|
||||
// fp[kParamEndSlotFromFp + num_args]; num_args (RBX) is Smi.
|
||||
__ leaq(RBX, Address(RBP, RBX, TIMES_4, kParamEndSlotFromFp * kWordSize));
|
||||
|
|
Loading…
Reference in a new issue