| OLD | NEW |
| 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 1809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1820 NegateCondition(cc), src1, src2); | 1820 NegateCondition(cc), src1, src2); |
| 1821 } else if (right_block == next_block) { | 1821 } else if (right_block == next_block) { |
| 1822 __ BranchF(chunk_->GetAssemblyLabel(left_block), NULL, cc, src1, src2); | 1822 __ BranchF(chunk_->GetAssemblyLabel(left_block), NULL, cc, src1, src2); |
| 1823 } else { | 1823 } else { |
| 1824 __ BranchF(chunk_->GetAssemblyLabel(left_block), NULL, cc, src1, src2); | 1824 __ BranchF(chunk_->GetAssemblyLabel(left_block), NULL, cc, src1, src2); |
| 1825 __ Branch(chunk_->GetAssemblyLabel(right_block)); | 1825 __ Branch(chunk_->GetAssemblyLabel(right_block)); |
| 1826 } | 1826 } |
| 1827 } | 1827 } |
| 1828 | 1828 |
| 1829 | 1829 |
| 1830 void LCodeGen::DoDebugBreak(LDebugBreak* instr) { |
| 1831 __ stop("LDebugBreak"); |
| 1832 } |
| 1833 |
| 1834 |
| 1830 void LCodeGen::DoBranch(LBranch* instr) { | 1835 void LCodeGen::DoBranch(LBranch* instr) { |
| 1831 int true_block = chunk_->LookupDestination(instr->true_block_id()); | 1836 int true_block = chunk_->LookupDestination(instr->true_block_id()); |
| 1832 int false_block = chunk_->LookupDestination(instr->false_block_id()); | 1837 int false_block = chunk_->LookupDestination(instr->false_block_id()); |
| 1833 | 1838 |
| 1834 Representation r = instr->hydrogen()->value()->representation(); | 1839 Representation r = instr->hydrogen()->value()->representation(); |
| 1835 if (r.IsInteger32()) { | 1840 if (r.IsInteger32()) { |
| 1836 Register reg = ToRegister(instr->value()); | 1841 Register reg = ToRegister(instr->value()); |
| 1837 EmitBranch(true_block, false_block, ne, reg, Operand(zero_reg)); | 1842 EmitBranch(true_block, false_block, ne, reg, Operand(zero_reg)); |
| 1838 } else if (r.IsDouble()) { | 1843 } else if (r.IsDouble()) { |
| 1839 DoubleRegister reg = ToDoubleRegister(instr->value()); | 1844 DoubleRegister reg = ToDoubleRegister(instr->value()); |
| (...skipping 3812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5652 __ Subu(scratch, result, scratch); | 5657 __ Subu(scratch, result, scratch); |
| 5653 __ lw(result, FieldMemOperand(scratch, | 5658 __ lw(result, FieldMemOperand(scratch, |
| 5654 FixedArray::kHeaderSize - kPointerSize)); | 5659 FixedArray::kHeaderSize - kPointerSize)); |
| 5655 __ bind(&done); | 5660 __ bind(&done); |
| 5656 } | 5661 } |
| 5657 | 5662 |
| 5658 | 5663 |
| 5659 #undef __ | 5664 #undef __ |
| 5660 | 5665 |
| 5661 } } // namespace v8::internal | 5666 } } // namespace v8::internal |
| OLD | NEW |