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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 6685047: Fix presubmit failure introduced by r7158. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | « no previous file | src/x64/lithium-x64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 ASSERT(ToRegister(instr->InputAt(0)).is(rax)); 781 ASSERT(ToRegister(instr->InputAt(0)).is(rax));
782 ASSERT(!right_reg.is(rax)); 782 ASSERT(!right_reg.is(rax));
783 ASSERT(!right_reg.is(rdx)); 783 ASSERT(!right_reg.is(rdx));
784 784
785 // Check for x % 0. 785 // Check for x % 0.
786 if (instr->hydrogen()->CheckFlag(HValue::kCanBeDivByZero)) { 786 if (instr->hydrogen()->CheckFlag(HValue::kCanBeDivByZero)) {
787 __ testl(right_reg, right_reg); 787 __ testl(right_reg, right_reg);
788 DeoptimizeIf(zero, instr->environment()); 788 DeoptimizeIf(zero, instr->environment());
789 } 789 }
790 790
791 // Sign extend eax to edx. (We are using only the low 32 bits of the values. ) 791 // Sign extend eax to edx.
792 // (We are using only the low 32 bits of the values.)
792 __ cdq(); 793 __ cdq();
793 794
794 // Check for (0 % -x) that will produce negative zero. 795 // Check for (0 % -x) that will produce negative zero.
795 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) { 796 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) {
796 NearLabel positive_left; 797 NearLabel positive_left;
797 NearLabel done; 798 NearLabel done;
798 __ testl(rax, rax); 799 __ testl(rax, rax);
799 __ j(not_sign, &positive_left); 800 __ j(not_sign, &positive_left);
800 __ idivl(right_reg); 801 __ idivl(right_reg);
801 802
(...skipping 2915 matching lines...) Expand 10 before | Expand all | Expand 10 after
3717 RegisterEnvironmentForDeoptimization(environment); 3718 RegisterEnvironmentForDeoptimization(environment);
3718 ASSERT(osr_pc_offset_ == -1); 3719 ASSERT(osr_pc_offset_ == -1);
3719 osr_pc_offset_ = masm()->pc_offset(); 3720 osr_pc_offset_ = masm()->pc_offset();
3720 } 3721 }
3721 3722
3722 #undef __ 3723 #undef __
3723 3724
3724 } } // namespace v8::internal 3725 } } // namespace v8::internal
3725 3726
3726 #endif // V8_TARGET_ARCH_X64 3727 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698