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

Side by Side Diff: src/a64/lithium-codegen-a64.cc

Issue 136093005: A64: Move integer exponent into correct register before calling MathPowStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3767 matching lines...) Expand 10 before | Expand all | Expand 10 after
3778 } else if (exponent_type.IsTagged()) { 3778 } else if (exponent_type.IsTagged()) {
3779 Label no_deopt; 3779 Label no_deopt;
3780 __ JumpIfSmi(x11, &no_deopt); 3780 __ JumpIfSmi(x11, &no_deopt);
3781 __ Ldr(x0, FieldMemOperand(x11, HeapObject::kMapOffset)); 3781 __ Ldr(x0, FieldMemOperand(x11, HeapObject::kMapOffset));
3782 DeoptimizeIfNotRoot(x0, Heap::kHeapNumberMapRootIndex, 3782 DeoptimizeIfNotRoot(x0, Heap::kHeapNumberMapRootIndex,
3783 instr->environment()); 3783 instr->environment());
3784 __ Bind(&no_deopt); 3784 __ Bind(&no_deopt);
3785 MathPowStub stub(MathPowStub::TAGGED); 3785 MathPowStub stub(MathPowStub::TAGGED);
3786 __ CallStub(&stub); 3786 __ CallStub(&stub);
3787 } else if (exponent_type.IsInteger32()) { 3787 } else if (exponent_type.IsInteger32()) {
3788 __ Mov(x12, x11);
ulan 2014/01/29 15:13:41 MathPowStub expects integer exponent in x12
baptiste.afsa1 2014/01/29 15:23:48 Isn't it possible to modify register constraints i
ulan 2014/01/29 15:33:14 Agreed. Done. On 2014/01/29 15:23:48, baptiste.af
3788 MathPowStub stub(MathPowStub::INTEGER); 3789 MathPowStub stub(MathPowStub::INTEGER);
3789 __ CallStub(&stub); 3790 __ CallStub(&stub);
3790 } else { 3791 } else {
3791 ASSERT(exponent_type.IsDouble()); 3792 ASSERT(exponent_type.IsDouble());
3792 MathPowStub stub(MathPowStub::DOUBLE); 3793 MathPowStub stub(MathPowStub::DOUBLE);
3793 __ CallStub(&stub); 3794 __ CallStub(&stub);
3794 } 3795 }
3795 } 3796 }
3796 3797
3797 3798
(...skipping 1661 matching lines...) Expand 10 before | Expand all | Expand 10 after
5459 __ Bind(&out_of_object); 5460 __ Bind(&out_of_object);
5460 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5461 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5461 // Index is equal to negated out of object property index plus 1. 5462 // Index is equal to negated out of object property index plus 1.
5462 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5463 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5463 __ Ldr(result, FieldMemOperand(result, 5464 __ Ldr(result, FieldMemOperand(result,
5464 FixedArray::kHeaderSize - kPointerSize)); 5465 FixedArray::kHeaderSize - kPointerSize));
5465 __ Bind(&done); 5466 __ Bind(&done);
5466 } 5467 }
5467 5468
5468 } } // namespace v8::internal 5469 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698