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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 91113003: [v8-dev] ARM: Optimize fixed double arguments (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | src/arm/lithium-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 return Runtime::kAbort; 1469 return Runtime::kAbort;
1470 } 1470 }
1471 } 1471 }
1472 1472
1473 1473
1474 void MathPowStub::Generate(MacroAssembler* masm) { 1474 void MathPowStub::Generate(MacroAssembler* masm) {
1475 const Register base = r1; 1475 const Register base = r1;
1476 const Register exponent = r2; 1476 const Register exponent = r2;
1477 const Register heapnumbermap = r5; 1477 const Register heapnumbermap = r5;
1478 const Register heapnumber = r0; 1478 const Register heapnumber = r0;
1479 const DwVfpRegister double_base = d1; 1479 const DwVfpRegister double_base = d0;
1480 const DwVfpRegister double_exponent = d2; 1480 const DwVfpRegister double_exponent = d1;
1481 const DwVfpRegister double_result = d3; 1481 const DwVfpRegister double_result = d2;
1482 const DwVfpRegister double_scratch = d0; 1482 const DwVfpRegister double_scratch = d3;
1483 const SwVfpRegister single_scratch = s0; 1483 const SwVfpRegister single_scratch = s6;
1484 const Register scratch = r9; 1484 const Register scratch = r9;
1485 const Register scratch2 = r4; 1485 const Register scratch2 = r4;
1486 1486
1487 Label call_runtime, done, int_exponent; 1487 Label call_runtime, done, int_exponent;
1488 if (exponent_type_ == ON_STACK) { 1488 if (exponent_type_ == ON_STACK) {
1489 Label base_is_smi, unpack_exponent; 1489 Label base_is_smi, unpack_exponent;
1490 // The exponent and base are supplied as arguments on the stack. 1490 // The exponent and base are supplied as arguments on the stack.
1491 // This can only happen if the stub is called from non-optimized code. 1491 // This can only happen if the stub is called from non-optimized code.
1492 // Load input parameters from stack to double registers. 1492 // Load input parameters from stack to double registers.
1493 __ ldr(base, MemOperand(sp, 1 * kPointerSize)); 1493 __ ldr(base, MemOperand(sp, 1 * kPointerSize));
(...skipping 4638 matching lines...) Expand 10 before | Expand all | Expand 10 after
6132 __ bind(&fast_elements_case); 6132 __ bind(&fast_elements_case);
6133 GenerateCase(masm, FAST_ELEMENTS); 6133 GenerateCase(masm, FAST_ELEMENTS);
6134 } 6134 }
6135 6135
6136 6136
6137 #undef __ 6137 #undef __
6138 6138
6139 } } // namespace v8::internal 6139 } } // namespace v8::internal
6140 6140
6141 #endif // V8_TARGET_ARCH_ARM 6141 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698