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

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

Issue 258933008: ARM64: Rename TryConvertDoubleToInt64 function (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 | src/arm64/lithium-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 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1189 } else if (exponent_type_ == TAGGED) { 1189 } else if (exponent_type_ == TAGGED) {
1190 __ JumpIfSmi(exponent_tagged, &exponent_is_smi); 1190 __ JumpIfSmi(exponent_tagged, &exponent_is_smi);
1191 __ Ldr(exponent_double, 1191 __ Ldr(exponent_double,
1192 FieldMemOperand(exponent_tagged, HeapNumber::kValueOffset)); 1192 FieldMemOperand(exponent_tagged, HeapNumber::kValueOffset));
1193 } 1193 }
1194 1194
1195 // Handle double (heap number) exponents. 1195 // Handle double (heap number) exponents.
1196 if (exponent_type_ != INTEGER) { 1196 if (exponent_type_ != INTEGER) {
1197 // Detect integer exponents stored as doubles and handle those in the 1197 // Detect integer exponents stored as doubles and handle those in the
1198 // integer fast-path. 1198 // integer fast-path.
1199 __ TryConvertDoubleToInt64(exponent_integer, exponent_double, 1199 __ TryRepresentDoubleAsInt64(exponent_integer, exponent_double,
1200 scratch0_double, &exponent_is_integer); 1200 scratch0_double, &exponent_is_integer);
1201 1201
1202 if (exponent_type_ == ON_STACK) { 1202 if (exponent_type_ == ON_STACK) {
1203 FPRegister half_double = d3; 1203 FPRegister half_double = d3;
1204 FPRegister minus_half_double = d4; 1204 FPRegister minus_half_double = d4;
1205 // Detect square root case. Crankshaft detects constant +/-0.5 at compile 1205 // Detect square root case. Crankshaft detects constant +/-0.5 at compile
1206 // time and uses DoMathPowHalf instead. We then skip this check for 1206 // time and uses DoMathPowHalf instead. We then skip this check for
1207 // non-constant cases of +/-0.5 as these hardly occur. 1207 // non-constant cases of +/-0.5 as these hardly occur.
1208 1208
1209 __ Fmov(minus_half_double, -0.5); 1209 __ Fmov(minus_half_double, -0.5);
1210 __ Fmov(half_double, 0.5); 1210 __ Fmov(half_double, 0.5);
(...skipping 4166 matching lines...) Expand 10 before | Expand all | Expand 10 after
5377 MemOperand(fp, 6 * kPointerSize), 5377 MemOperand(fp, 6 * kPointerSize),
5378 NULL); 5378 NULL);
5379 } 5379 }
5380 5380
5381 5381
5382 #undef __ 5382 #undef __
5383 5383
5384 } } // namespace v8::internal 5384 } } // namespace v8::internal
5385 5385
5386 #endif // V8_TARGET_ARCH_ARM64 5386 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « no previous file | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698