| 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 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1099 | 1099 |
| 1100 // Store d29-d31 into x, y, z. | 1100 // Store d29-d31 into x, y, z. |
| 1101 __ add(r4, r0, Operand(OFFSET_OF(T, x))); | 1101 __ add(r4, r0, Operand(OFFSET_OF(T, x))); |
| 1102 __ vstm(ia_w, r4, d29, d31); | 1102 __ vstm(ia_w, r4, d29, d31); |
| 1103 | 1103 |
| 1104 // Move constants into d20, d21, d22 and store into i, j, k. | 1104 // Move constants into d20, d21, d22 and store into i, j, k. |
| 1105 __ vmov(d20, 14.7610017472335499); | 1105 __ vmov(d20, 14.7610017472335499); |
| 1106 __ vmov(d21, 16.0); | 1106 __ vmov(d21, 16.0); |
| 1107 __ mov(r1, Operand(372106121)); | 1107 __ mov(r1, Operand(372106121)); |
| 1108 __ mov(r2, Operand(1079146608)); | 1108 __ mov(r2, Operand(1079146608)); |
| 1109 __ vmov(d22, 0, r1); | 1109 __ vmov(d22, VmovIndexLo, r1); |
| 1110 __ vmov(d22, 1, r2); | 1110 __ vmov(d22, VmovIndexHi, r2); |
| 1111 __ add(r4, r0, Operand(OFFSET_OF(T, i))); | 1111 __ add(r4, r0, Operand(OFFSET_OF(T, i))); |
| 1112 __ vstm(ia_w, r4, d20, d22); | 1112 __ vstm(ia_w, r4, d20, d22); |
| 1113 | 1113 |
| 1114 __ ldm(ia_w, sp, r4.bit() | pc.bit()); | 1114 __ ldm(ia_w, sp, r4.bit() | pc.bit()); |
| 1115 | 1115 |
| 1116 CodeDesc desc; | 1116 CodeDesc desc; |
| 1117 assm.GetCode(&desc); | 1117 assm.GetCode(&desc); |
| 1118 Object* code = HEAP->CreateCode( | 1118 Object* code = HEAP->CreateCode( |
| 1119 desc, | 1119 desc, |
| 1120 Code::ComputeFlags(Code::STUB), | 1120 Code::ComputeFlags(Code::STUB), |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1138 CHECK_EQ(2.75, t.x); | 1138 CHECK_EQ(2.75, t.x); |
| 1139 CHECK_EQ(1.5, t.y); | 1139 CHECK_EQ(1.5, t.y); |
| 1140 CHECK_EQ(17.0, t.z); | 1140 CHECK_EQ(17.0, t.z); |
| 1141 CHECK_EQ(14.7610017472335499, t.i); | 1141 CHECK_EQ(14.7610017472335499, t.i); |
| 1142 CHECK_EQ(16.0, t.j); | 1142 CHECK_EQ(16.0, t.j); |
| 1143 CHECK_EQ(73.8818412254460241, t.k); | 1143 CHECK_EQ(73.8818412254460241, t.k); |
| 1144 } | 1144 } |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 #undef __ | 1147 #undef __ |
| OLD | NEW |