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 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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()); | 1903 ASSERT(instr->result()->IsRegister()); |
1904 __ mov(ToRegister(instr->result()), Operand(instr->value())); | 1904 __ mov(ToRegister(instr->result()), Operand(instr->value())); |
1905 } | 1905 } |
1906 | 1906 |
1907 | 1907 |
| 1908 void LCodeGen::DoConstantS(LConstantS* instr) { |
| 1909 ASSERT(instr->result()->IsRegister()); |
| 1910 __ mov(ToRegister(instr->result()), Operand(instr->value())); |
| 1911 } |
| 1912 |
| 1913 |
1908 void LCodeGen::DoConstantD(LConstantD* instr) { | 1914 void LCodeGen::DoConstantD(LConstantD* instr) { |
1909 ASSERT(instr->result()->IsDoubleRegister()); | 1915 ASSERT(instr->result()->IsDoubleRegister()); |
1910 DwVfpRegister result = ToDoubleRegister(instr->result()); | 1916 DwVfpRegister result = ToDoubleRegister(instr->result()); |
1911 double v = instr->value(); | 1917 double v = instr->value(); |
1912 __ Vmov(result, v, scratch0()); | 1918 __ Vmov(result, v, scratch0()); |
1913 } | 1919 } |
1914 | 1920 |
1915 | 1921 |
1916 void LCodeGen::DoConstantT(LConstantT* instr) { | 1922 void LCodeGen::DoConstantT(LConstantT* instr) { |
1917 Handle<Object> value = instr->value(); | 1923 Handle<Object> value = instr->value(); |
(...skipping 4073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5991 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5997 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
5992 __ ldr(result, FieldMemOperand(scratch, | 5998 __ ldr(result, FieldMemOperand(scratch, |
5993 FixedArray::kHeaderSize - kPointerSize)); | 5999 FixedArray::kHeaderSize - kPointerSize)); |
5994 __ bind(&done); | 6000 __ bind(&done); |
5995 } | 6001 } |
5996 | 6002 |
5997 | 6003 |
5998 #undef __ | 6004 #undef __ |
5999 | 6005 |
6000 } } // namespace v8::internal | 6006 } } // namespace v8::internal |
OLD | NEW |