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

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

Issue 173663002: A64: Tidy up register use in TaggedToI (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | src/a64/lithium-codegen-a64.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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
558 __ Push(scratch1, scratch2); 558 __ Push(scratch1, scratch2);
559 // Account for saved regs if input is jssp. 559 // Account for saved regs if input is jssp.
560 if (input.is(jssp)) double_offset += 2 * kPointerSize; 560 if (input.is(jssp)) double_offset += 2 * kPointerSize;
561 561
562 if (!skip_fastpath()) { 562 if (!skip_fastpath()) {
563 __ Push(double_scratch); 563 __ Push(double_scratch);
564 if (input.is(jssp)) double_offset += 1 * kDoubleSize; 564 if (input.is(jssp)) double_offset += 1 * kDoubleSize;
565 __ Ldr(double_scratch, MemOperand(input, double_offset)); 565 __ Ldr(double_scratch, MemOperand(input, double_offset));
566 // Try to convert with a FPU convert instruction. This handles all 566 // Try to convert with a FPU convert instruction. This handles all
567 // non-saturating cases. 567 // non-saturating cases.
568 __ TryInlineTruncateDoubleToI(result, double_scratch, &done); 568 __ TryConvertDoubleToInt64(result, double_scratch, &done);
569 __ Fmov(result, double_scratch); 569 __ Fmov(result, double_scratch);
570 } else { 570 } else {
571 __ Ldr(result, MemOperand(input, double_offset)); 571 __ Ldr(result, MemOperand(input, double_offset));
572 } 572 }
573 573
574 // If we reach here we need to manually convert the input to an int32. 574 // If we reach here we need to manually convert the input to an int32.
575 575
576 // Extract the exponent. 576 // Extract the exponent.
577 Register exponent = scratch1; 577 Register exponent = scratch1;
578 __ Ubfx(exponent, result, HeapNumber::kMantissaBits, 578 __ Ubfx(exponent, result, HeapNumber::kMantissaBits,
(...skipping 5220 matching lines...) Expand 10 before | Expand all | Expand 10 after
5799 MemOperand(fp, 6 * kPointerSize), 5799 MemOperand(fp, 6 * kPointerSize),
5800 NULL); 5800 NULL);
5801 } 5801 }
5802 5802
5803 5803
5804 #undef __ 5804 #undef __
5805 5805
5806 } } // namespace v8::internal 5806 } } // namespace v8::internal
5807 5807
5808 #endif // V8_TARGET_ARCH_A64 5808 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « no previous file | src/a64/lithium-codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698