| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1856 __ j(cc, chunk_->GetAssemblyLabel(left_block)); | 1856 __ j(cc, chunk_->GetAssemblyLabel(left_block)); |
| 1857 } else { | 1857 } else { |
| 1858 __ j(cc, chunk_->GetAssemblyLabel(left_block)); | 1858 __ j(cc, chunk_->GetAssemblyLabel(left_block)); |
| 1859 if (cc != always) { | 1859 if (cc != always) { |
| 1860 __ jmp(chunk_->GetAssemblyLabel(right_block)); | 1860 __ jmp(chunk_->GetAssemblyLabel(right_block)); |
| 1861 } | 1861 } |
| 1862 } | 1862 } |
| 1863 } | 1863 } |
| 1864 | 1864 |
| 1865 | 1865 |
| 1866 void LCodeGen::DoDebugBreak(LDebugBreak* instr) { |
| 1867 __ int3(); |
| 1868 } |
| 1869 |
| 1870 |
| 1866 void LCodeGen::DoBranch(LBranch* instr) { | 1871 void LCodeGen::DoBranch(LBranch* instr) { |
| 1867 int true_block = chunk_->LookupDestination(instr->true_block_id()); | 1872 int true_block = chunk_->LookupDestination(instr->true_block_id()); |
| 1868 int false_block = chunk_->LookupDestination(instr->false_block_id()); | 1873 int false_block = chunk_->LookupDestination(instr->false_block_id()); |
| 1869 | 1874 |
| 1870 Representation r = instr->hydrogen()->value()->representation(); | 1875 Representation r = instr->hydrogen()->value()->representation(); |
| 1871 if (r.IsInteger32()) { | 1876 if (r.IsInteger32()) { |
| 1872 Register reg = ToRegister(instr->value()); | 1877 Register reg = ToRegister(instr->value()); |
| 1873 __ testl(reg, reg); | 1878 __ testl(reg, reg); |
| 1874 EmitBranch(true_block, false_block, not_zero); | 1879 EmitBranch(true_block, false_block, not_zero); |
| 1875 } else if (r.IsDouble()) { | 1880 } else if (r.IsDouble()) { |
| (...skipping 3724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5600 FixedArray::kHeaderSize - kPointerSize)); | 5605 FixedArray::kHeaderSize - kPointerSize)); |
| 5601 __ bind(&done); | 5606 __ bind(&done); |
| 5602 } | 5607 } |
| 5603 | 5608 |
| 5604 | 5609 |
| 5605 #undef __ | 5610 #undef __ |
| 5606 | 5611 |
| 5607 } } // namespace v8::internal | 5612 } } // namespace v8::internal |
| 5608 | 5613 |
| 5609 #endif // V8_TARGET_ARCH_X64 | 5614 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |