OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2438 // vmov register to register. | 2438 // vmov register to register. |
2439 if (instr->SzValue() == 0x1) { | 2439 if (instr->SzValue() == 0x1) { |
2440 int m = instr->VFPMRegValue(kDoublePrecision); | 2440 int m = instr->VFPMRegValue(kDoublePrecision); |
2441 int d = instr->VFPDRegValue(kDoublePrecision); | 2441 int d = instr->VFPDRegValue(kDoublePrecision); |
2442 set_d_register_from_double(d, get_double_from_d_register(m)); | 2442 set_d_register_from_double(d, get_double_from_d_register(m)); |
2443 } else { | 2443 } else { |
2444 int m = instr->VFPMRegValue(kSinglePrecision); | 2444 int m = instr->VFPMRegValue(kSinglePrecision); |
2445 int d = instr->VFPDRegValue(kSinglePrecision); | 2445 int d = instr->VFPDRegValue(kSinglePrecision); |
2446 set_s_register_from_float(d, get_float_from_s_register(m)); | 2446 set_s_register_from_float(d, get_float_from_s_register(m)); |
2447 } | 2447 } |
| 2448 } else if ((instr->Opc2Value() == 0x0) && (instr->Opc3Value() == 0x3)) { |
| 2449 // vabs |
| 2450 double dm_value = get_double_from_d_register(vm); |
| 2451 double dd_value = fabs(dm_value); |
| 2452 set_d_register_from_double(vd, dd_value); |
2448 } else if ((instr->Opc2Value() == 0x7) && (instr->Opc3Value() == 0x3)) { | 2453 } else if ((instr->Opc2Value() == 0x7) && (instr->Opc3Value() == 0x3)) { |
2449 DecodeVCVTBetweenDoubleAndSingle(instr); | 2454 DecodeVCVTBetweenDoubleAndSingle(instr); |
2450 } else if ((instr->Opc2Value() == 0x8) && (instr->Opc3Value() & 0x1)) { | 2455 } else if ((instr->Opc2Value() == 0x8) && (instr->Opc3Value() & 0x1)) { |
2451 DecodeVCVTBetweenFloatingPointAndInteger(instr); | 2456 DecodeVCVTBetweenFloatingPointAndInteger(instr); |
2452 } else if (((instr->Opc2Value() >> 1) == 0x6) && | 2457 } else if (((instr->Opc2Value() >> 1) == 0x6) && |
2453 (instr->Opc3Value() & 0x1)) { | 2458 (instr->Opc3Value() & 0x1)) { |
2454 DecodeVCVTBetweenFloatingPointAndInteger(instr); | 2459 DecodeVCVTBetweenFloatingPointAndInteger(instr); |
2455 } else if (((instr->Opc2Value() == 0x4) || (instr->Opc2Value() == 0x5)) && | 2460 } else if (((instr->Opc2Value() == 0x4) || (instr->Opc2Value() == 0x5)) && |
2456 (instr->Opc3Value() & 0x1)) { | 2461 (instr->Opc3Value() & 0x1)) { |
2457 DecodeVCMP(instr); | 2462 DecodeVCMP(instr); |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3047 uintptr_t address = *stack_slot; | 3052 uintptr_t address = *stack_slot; |
3048 set_register(sp, current_sp + sizeof(uintptr_t)); | 3053 set_register(sp, current_sp + sizeof(uintptr_t)); |
3049 return address; | 3054 return address; |
3050 } | 3055 } |
3051 | 3056 |
3052 } } // namespace v8::internal | 3057 } } // namespace v8::internal |
3053 | 3058 |
3054 #endif // USE_SIMULATOR | 3059 #endif // USE_SIMULATOR |
3055 | 3060 |
3056 #endif // V8_TARGET_ARCH_ARM | 3061 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |