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

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

Issue 6448001: x64: Add MulI and DivI to lithium instructions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-ia32.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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 if (instr->hydrogen()->CheckFlag(HValue::kCanOverflow)) { 797 if (instr->hydrogen()->CheckFlag(HValue::kCanOverflow)) {
798 DeoptimizeIf(overflow, instr->environment()); 798 DeoptimizeIf(overflow, instr->environment());
799 } 799 }
800 800
801 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) { 801 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) {
802 // Bail out if the result is supposed to be negative zero. 802 // Bail out if the result is supposed to be negative zero.
803 NearLabel done; 803 NearLabel done;
804 __ test(left, Operand(left)); 804 __ test(left, Operand(left));
805 __ j(not_zero, &done); 805 __ j(not_zero, &done);
806 if (right->IsConstantOperand()) { 806 if (right->IsConstantOperand()) {
807 if (ToInteger32(LConstantOperand::cast(right)) < 0) { 807 if (ToInteger32(LConstantOperand::cast(right)) <= 0) {
808 DeoptimizeIf(no_condition, instr->environment()); 808 DeoptimizeIf(no_condition, instr->environment());
809 } 809 }
810 } else { 810 } else {
811 // Test the non-zero operand for negative sign. 811 // Test the non-zero operand for negative sign.
812 __ or_(ToRegister(instr->TempAt(0)), ToOperand(right)); 812 __ or_(ToRegister(instr->TempAt(0)), ToOperand(right));
813 DeoptimizeIf(sign, instr->environment()); 813 DeoptimizeIf(sign, instr->environment());
814 } 814 }
815 __ bind(&done); 815 __ bind(&done);
816 } 816 }
817 } 817 }
(...skipping 2829 matching lines...) Expand 10 before | Expand all | Expand 10 after
3647 ASSERT(osr_pc_offset_ == -1); 3647 ASSERT(osr_pc_offset_ == -1);
3648 osr_pc_offset_ = masm()->pc_offset(); 3648 osr_pc_offset_ = masm()->pc_offset();
3649 } 3649 }
3650 3650
3651 3651
3652 #undef __ 3652 #undef __
3653 3653
3654 } } // namespace v8::internal 3654 } } // namespace v8::internal
3655 3655
3656 #endif // V8_TARGET_ARCH_IA32 3656 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698