OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 19 matching lines...) Expand all Loading... |
30 #if defined(V8_TARGET_ARCH_ARM) | 30 #if defined(V8_TARGET_ARCH_ARM) |
31 | 31 |
32 #include "constants-arm.h" | 32 #include "constants-arm.h" |
33 | 33 |
34 | 34 |
35 namespace assembler { | 35 namespace assembler { |
36 namespace arm { | 36 namespace arm { |
37 | 37 |
38 namespace v8i = v8::internal; | 38 namespace v8i = v8::internal; |
39 | 39 |
40 double Instr::DoubleImmedVmov() const { | 40 double Instruction::DoubleImmedVmov() const { |
41 // Reconstruct a double from the immediate encoded in the vmov instruction. | 41 // Reconstruct a double from the immediate encoded in the vmov instruction. |
42 // | 42 // |
43 // instruction: [xxxxxxxx,xxxxabcd,xxxxxxxx,xxxxefgh] | 43 // instruction: [xxxxxxxx,xxxxabcd,xxxxxxxx,xxxxefgh] |
44 // double: [aBbbbbbb,bbcdefgh,00000000,00000000, | 44 // double: [aBbbbbbb,bbcdefgh,00000000,00000000, |
45 // 00000000,00000000,00000000,00000000] | 45 // 00000000,00000000,00000000,00000000] |
46 // | 46 // |
47 // where B = ~b. Only the high 16 bits are affected. | 47 // where B = ~b. Only the high 16 bits are affected. |
48 uint64_t high16; | 48 uint64_t high16; |
49 high16 = (Bits(17, 16) << 4) | Bits(3, 0); // xxxxxxxx,xxcdefgh. | 49 high16 = (Bits(17, 16) << 4) | Bits(3, 0); // xxxxxxxx,xxcdefgh. |
50 high16 |= (0xff * Bit(18)) << 6; // xxbbbbbb,bbxxxxxx. | 50 high16 |= (0xff * Bit(18)) << 6; // xxbbbbbb,bbxxxxxx. |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 145 } |
146 | 146 |
147 // No register with the requested name found. | 147 // No register with the requested name found. |
148 return kNoRegister; | 148 return kNoRegister; |
149 } | 149 } |
150 | 150 |
151 | 151 |
152 } } // namespace assembler::arm | 152 } } // namespace assembler::arm |
153 | 153 |
154 #endif // V8_TARGET_ARCH_ARM | 154 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |