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

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

Issue 216643002: Reland "Clean up runtime functions for Maths." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix Created 6 years, 8 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 | « src/arm/full-codegen-arm.cc ('k') | src/arm64/full-codegen-arm64.cc » ('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 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 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1382 // catch this corner-case, we bail out if the result was 0. (This can only 1382 // catch this corner-case, we bail out if the result was 0. (This can only
1383 // occur if the divisor is infinity or the base is zero.) 1383 // occur if the divisor is infinity or the base is zero.)
1384 __ Fcmp(result_double, 0.0); 1384 __ Fcmp(result_double, 0.0);
1385 __ B(&done, ne); 1385 __ B(&done, ne);
1386 1386
1387 if (exponent_type_ == ON_STACK) { 1387 if (exponent_type_ == ON_STACK) {
1388 // Bail out to runtime code. 1388 // Bail out to runtime code.
1389 __ Bind(&call_runtime); 1389 __ Bind(&call_runtime);
1390 // Put the arguments back on the stack. 1390 // Put the arguments back on the stack.
1391 __ Push(base_tagged, exponent_tagged); 1391 __ Push(base_tagged, exponent_tagged);
1392 __ TailCallRuntime(Runtime::kMath_pow_cfunction, 2, 1); 1392 __ TailCallRuntime(Runtime::kHiddenMathPow, 2, 1);
1393 1393
1394 // Return. 1394 // Return.
1395 __ Bind(&done); 1395 __ Bind(&done);
1396 __ AllocateHeapNumber(result_tagged, &call_runtime, scratch0, scratch1); 1396 __ AllocateHeapNumber(result_tagged, &call_runtime, scratch0, scratch1);
1397 __ Str(result_double, 1397 __ Str(result_double,
1398 FieldMemOperand(result_tagged, HeapNumber::kValueOffset)); 1398 FieldMemOperand(result_tagged, HeapNumber::kValueOffset));
1399 ASSERT(result_tagged.is(x0)); 1399 ASSERT(result_tagged.is(x0));
1400 __ IncrementCounter( 1400 __ IncrementCounter(
1401 masm->isolate()->counters()->math_pow(), 1, scratch0, scratch1); 1401 masm->isolate()->counters()->math_pow(), 1, scratch0, scratch1);
1402 __ Ret(); 1402 __ Ret();
(...skipping 4331 matching lines...) Expand 10 before | Expand all | Expand 10 after
5734 MemOperand(fp, 6 * kPointerSize), 5734 MemOperand(fp, 6 * kPointerSize),
5735 NULL); 5735 NULL);
5736 } 5736 }
5737 5737
5738 5738
5739 #undef __ 5739 #undef __
5740 5740
5741 } } // namespace v8::internal 5741 } } // namespace v8::internal
5742 5742
5743 #endif // V8_TARGET_ARCH_ARM64 5743 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698