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

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

Issue 214593005: Revert "Clean up runtime functions for Maths." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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/math.js ('k') | src/mips/full-codegen-mips.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 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 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 // double_exponent may not contain the exponent value if the input was a 1504 // double_exponent may not contain the exponent value if the input was a
1505 // smi. We set it with exponent value before bailing out. 1505 // smi. We set it with exponent value before bailing out.
1506 __ mtc1(exponent, single_scratch); 1506 __ mtc1(exponent, single_scratch);
1507 __ cvt_d_w(double_exponent, single_scratch); 1507 __ cvt_d_w(double_exponent, single_scratch);
1508 1508
1509 // Returning or bailing out. 1509 // Returning or bailing out.
1510 Counters* counters = masm->isolate()->counters(); 1510 Counters* counters = masm->isolate()->counters();
1511 if (exponent_type_ == ON_STACK) { 1511 if (exponent_type_ == ON_STACK) {
1512 // The arguments are still on the stack. 1512 // The arguments are still on the stack.
1513 __ bind(&call_runtime); 1513 __ bind(&call_runtime);
1514 __ TailCallRuntime(Runtime::kHiddenMathPow, 2, 1); 1514 __ TailCallRuntime(Runtime::kMath_pow_cfunction, 2, 1);
1515 1515
1516 // The stub is called from non-optimized code, which expects the result 1516 // The stub is called from non-optimized code, which expects the result
1517 // as heap number in exponent. 1517 // as heap number in exponent.
1518 __ bind(&done); 1518 __ bind(&done);
1519 __ AllocateHeapNumber( 1519 __ AllocateHeapNumber(
1520 heapnumber, scratch, scratch2, heapnumbermap, &call_runtime); 1520 heapnumber, scratch, scratch2, heapnumbermap, &call_runtime);
1521 __ sdc1(double_result, 1521 __ sdc1(double_result,
1522 FieldMemOperand(heapnumber, HeapNumber::kValueOffset)); 1522 FieldMemOperand(heapnumber, HeapNumber::kValueOffset));
1523 ASSERT(heapnumber.is(v0)); 1523 ASSERT(heapnumber.is(v0));
1524 __ IncrementCounter(counters->math_pow(), 1, scratch, scratch2); 1524 __ IncrementCounter(counters->math_pow(), 1, scratch, scratch2);
(...skipping 4119 matching lines...) Expand 10 before | Expand all | Expand 10 after
5644 MemOperand(fp, 6 * kPointerSize), 5644 MemOperand(fp, 6 * kPointerSize),
5645 NULL); 5645 NULL);
5646 } 5646 }
5647 5647
5648 5648
5649 #undef __ 5649 #undef __
5650 5650
5651 } } // namespace v8::internal 5651 } } // namespace v8::internal
5652 5652
5653 #endif // V8_TARGET_ARCH_MIPS 5653 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/math.js ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698