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

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

Issue 7552007: Merge r8784 into 3.3 branch, fixing a code generation bug for LBranch on ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.3/
Patch Set: '' Created 9 years, 4 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/version.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 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 Register reg = ToRegister(instr->InputAt(0)); 1464 Register reg = ToRegister(instr->InputAt(0));
1465 __ cmp(reg, Operand(0)); 1465 __ cmp(reg, Operand(0));
1466 EmitBranch(true_block, false_block, ne); 1466 EmitBranch(true_block, false_block, ne);
1467 } else if (r.IsDouble()) { 1467 } else if (r.IsDouble()) {
1468 DoubleRegister reg = ToDoubleRegister(instr->InputAt(0)); 1468 DoubleRegister reg = ToDoubleRegister(instr->InputAt(0));
1469 Register scratch = scratch0(); 1469 Register scratch = scratch0();
1470 1470
1471 // Test the double value. Zero and NaN are false. 1471 // Test the double value. Zero and NaN are false.
1472 __ VFPCompareAndLoadFlags(reg, 0.0, scratch); 1472 __ VFPCompareAndLoadFlags(reg, 0.0, scratch);
1473 __ tst(scratch, Operand(kVFPZConditionFlagBit | kVFPVConditionFlagBit)); 1473 __ tst(scratch, Operand(kVFPZConditionFlagBit | kVFPVConditionFlagBit));
1474 EmitBranch(true_block, false_block, ne); 1474 EmitBranch(true_block, false_block, eq);
1475 } else { 1475 } else {
1476 ASSERT(r.IsTagged()); 1476 ASSERT(r.IsTagged());
1477 Register reg = ToRegister(instr->InputAt(0)); 1477 Register reg = ToRegister(instr->InputAt(0));
1478 if (instr->hydrogen()->type().IsBoolean()) { 1478 if (instr->hydrogen()->type().IsBoolean()) {
1479 __ LoadRoot(ip, Heap::kTrueValueRootIndex); 1479 __ LoadRoot(ip, Heap::kTrueValueRootIndex);
1480 __ cmp(reg, ip); 1480 __ cmp(reg, ip);
1481 EmitBranch(true_block, false_block, eq); 1481 EmitBranch(true_block, false_block, eq);
1482 } else { 1482 } else {
1483 Label* true_label = chunk_->GetAssemblyLabel(true_block); 1483 Label* true_label = chunk_->GetAssemblyLabel(true_block);
1484 Label* false_label = chunk_->GetAssemblyLabel(false_block); 1484 Label* false_label = chunk_->GetAssemblyLabel(false_block);
(...skipping 3056 matching lines...) Expand 10 before | Expand all | Expand 10 after
4541 ASSERT(osr_pc_offset_ == -1); 4541 ASSERT(osr_pc_offset_ == -1);
4542 osr_pc_offset_ = masm()->pc_offset(); 4542 osr_pc_offset_ = masm()->pc_offset();
4543 } 4543 }
4544 4544
4545 4545
4546 4546
4547 4547
4548 #undef __ 4548 #undef __
4549 4549
4550 } } // namespace v8::internal 4550 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698