| 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 1882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1893 __ rsb(ToRegister(result), ToRegister(left), ToOperand(right), set_cond); | 1893 __ rsb(ToRegister(result), ToRegister(left), ToOperand(right), set_cond); |
| 1894 } | 1894 } |
| 1895 | 1895 |
| 1896 if (can_overflow) { | 1896 if (can_overflow) { |
| 1897 DeoptimizeIf(vs, instr->environment()); | 1897 DeoptimizeIf(vs, instr->environment()); |
| 1898 } | 1898 } |
| 1899 } | 1899 } |
| 1900 | 1900 |
| 1901 | 1901 |
| 1902 void LCodeGen::DoConstantI(LConstantI* instr) { | 1902 void LCodeGen::DoConstantI(LConstantI* instr) { |
| 1903 ASSERT(instr->result()->IsRegister()); | |
| 1904 __ mov(ToRegister(instr->result()), Operand(instr->value())); | 1903 __ mov(ToRegister(instr->result()), Operand(instr->value())); |
| 1905 } | 1904 } |
| 1906 | 1905 |
| 1906 |
| 1907 void LCodeGen::DoConstantS(LConstantS* instr) { |
| 1908 __ mov(ToRegister(instr->result()), Operand(instr->value())); |
| 1909 } |
| 1910 |
| 1907 | 1911 |
| 1908 void LCodeGen::DoConstantD(LConstantD* instr) { | 1912 void LCodeGen::DoConstantD(LConstantD* instr) { |
| 1909 ASSERT(instr->result()->IsDoubleRegister()); | 1913 ASSERT(instr->result()->IsDoubleRegister()); |
| 1910 DwVfpRegister result = ToDoubleRegister(instr->result()); | 1914 DwVfpRegister result = ToDoubleRegister(instr->result()); |
| 1911 double v = instr->value(); | 1915 double v = instr->value(); |
| 1912 __ Vmov(result, v, scratch0()); | 1916 __ Vmov(result, v, scratch0()); |
| 1913 } | 1917 } |
| 1914 | 1918 |
| 1915 | 1919 |
| 1916 void LCodeGen::DoConstantT(LConstantT* instr) { | 1920 void LCodeGen::DoConstantT(LConstantT* instr) { |
| (...skipping 4074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5991 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5995 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5992 __ ldr(result, FieldMemOperand(scratch, | 5996 __ ldr(result, FieldMemOperand(scratch, |
| 5993 FixedArray::kHeaderSize - kPointerSize)); | 5997 FixedArray::kHeaderSize - kPointerSize)); |
| 5994 __ bind(&done); | 5998 __ bind(&done); |
| 5995 } | 5999 } |
| 5996 | 6000 |
| 5997 | 6001 |
| 5998 #undef __ | 6002 #undef __ |
| 5999 | 6003 |
| 6000 } } // namespace v8::internal | 6004 } } // namespace v8::internal |
| OLD | NEW |