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

Side by Side Diff: src/arm/lithium-codegen-arm.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-arm.cc ('k') | src/ia32/lithium-codegen-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 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after
1181 } else { 1181 } else {
1182 __ mul(left, left, right); 1182 __ mul(left, left, right);
1183 } 1183 }
1184 1184
1185 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) { 1185 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) {
1186 // Bail out if the result is supposed to be negative zero. 1186 // Bail out if the result is supposed to be negative zero.
1187 Label done; 1187 Label done;
1188 __ tst(left, Operand(left)); 1188 __ tst(left, Operand(left));
1189 __ b(ne, &done); 1189 __ b(ne, &done);
1190 if (instr->InputAt(1)->IsConstantOperand()) { 1190 if (instr->InputAt(1)->IsConstantOperand()) {
1191 if (ToInteger32(LConstantOperand::cast(instr->InputAt(1))) < 0) { 1191 if (ToInteger32(LConstantOperand::cast(instr->InputAt(1))) <= 0) {
1192 DeoptimizeIf(kNoCondition, instr->environment()); 1192 DeoptimizeIf(kNoCondition, instr->environment());
1193 } 1193 }
1194 } else { 1194 } else {
1195 // Test the non-zero operand for negative sign. 1195 // Test the non-zero operand for negative sign.
1196 __ cmp(ToRegister(instr->TempAt(0)), Operand(0)); 1196 __ cmp(ToRegister(instr->TempAt(0)), Operand(0));
1197 DeoptimizeIf(mi, instr->environment()); 1197 DeoptimizeIf(mi, instr->environment());
1198 } 1198 }
1199 __ bind(&done); 1199 __ bind(&done);
1200 } 1200 }
1201 } 1201 }
(...skipping 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after
3818 3818
3819 3819
3820 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 3820 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
3821 Abort("DoOsrEntry unimplemented."); 3821 Abort("DoOsrEntry unimplemented.");
3822 } 3822 }
3823 3823
3824 3824
3825 #undef __ 3825 #undef __
3826 3826
3827 } } // namespace v8::internal 3827 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698