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

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

Issue 11035053: Rollback trunk to bleeding_edge revision 12525 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 2 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/ia32/ic-ia32.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1227 if (instr->hydrogen()->CheckFlag(HValue::kCanOverflow)) { 1227 if (instr->hydrogen()->CheckFlag(HValue::kCanOverflow)) {
1228 DeoptimizeIf(overflow, instr->environment()); 1228 DeoptimizeIf(overflow, instr->environment());
1229 } 1229 }
1230 1230
1231 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) { 1231 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) {
1232 // Bail out if the result is supposed to be negative zero. 1232 // Bail out if the result is supposed to be negative zero.
1233 Label done; 1233 Label done;
1234 __ test(left, Operand(left)); 1234 __ test(left, Operand(left));
1235 __ j(not_zero, &done, Label::kNear); 1235 __ j(not_zero, &done, Label::kNear);
1236 if (right->IsConstantOperand()) { 1236 if (right->IsConstantOperand()) {
1237 if (ToInteger32(LConstantOperand::cast(right)) < 0) { 1237 if (ToInteger32(LConstantOperand::cast(right)) <= 0) {
1238 DeoptimizeIf(no_condition, instr->environment()); 1238 DeoptimizeIf(no_condition, instr->environment());
1239 } else if (ToInteger32(LConstantOperand::cast(right)) == 0) {
1240 __ cmp(ToRegister(instr->temp()), Immediate(0));
1241 DeoptimizeIf(less, instr->environment());
1242 } 1239 }
1243 } else { 1240 } else {
1244 // Test the non-zero operand for negative sign. 1241 // Test the non-zero operand for negative sign.
1245 __ or_(ToRegister(instr->temp()), ToOperand(right)); 1242 __ or_(ToRegister(instr->temp()), ToOperand(right));
1246 DeoptimizeIf(sign, instr->environment()); 1243 DeoptimizeIf(sign, instr->environment());
1247 } 1244 }
1248 __ bind(&done); 1245 __ bind(&done);
1249 } 1246 }
1250 } 1247 }
1251 1248
(...skipping 4292 matching lines...) Expand 10 before | Expand all | Expand 10 after
5544 FixedArray::kHeaderSize - kPointerSize)); 5541 FixedArray::kHeaderSize - kPointerSize));
5545 __ bind(&done); 5542 __ bind(&done);
5546 } 5543 }
5547 5544
5548 5545
5549 #undef __ 5546 #undef __
5550 5547
5551 } } // namespace v8::internal 5548 } } // namespace v8::internal
5552 5549
5553 #endif // V8_TARGET_ARCH_IA32 5550 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698