OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2731 clr_reg_name, clr_reg_value, xreg(31, Reg31IsStackPointer), clr_normal); | 2731 clr_reg_name, clr_reg_value, xreg(31, Reg31IsStackPointer), clr_normal); |
2732 return true; | 2732 return true; |
2733 } else if (strcmp(desc, "wcsp") == 0) { | 2733 } else if (strcmp(desc, "wcsp") == 0) { |
2734 ASSERT(CodeFromName(desc) == static_cast<int>(kSPRegInternalCode)); | 2734 ASSERT(CodeFromName(desc) == static_cast<int>(kSPRegInternalCode)); |
2735 PrintF("%s wcsp:%s 0x%08" PRIx32 "%s\n", | 2735 PrintF("%s wcsp:%s 0x%08" PRIx32 "%s\n", |
2736 clr_reg_name, clr_reg_value, wreg(31, Reg31IsStackPointer), clr_normal); | 2736 clr_reg_name, clr_reg_value, wreg(31, Reg31IsStackPointer), clr_normal); |
2737 return true; | 2737 return true; |
2738 } | 2738 } |
2739 | 2739 |
2740 int i = CodeFromName(desc); | 2740 int i = CodeFromName(desc); |
2741 if (i == -1) { | 2741 STATIC_ASSERT(kNumberOfRegisters == kNumberOfFPRegisters); |
2742 return false; | 2742 if (i < 0 || static_cast<unsigned>(i) >= kNumberOfFPRegisters) return false; |
2743 } | |
2744 ASSERT(i >= 0); | |
2745 | 2743 |
2746 if (desc[0] == 'v') { | 2744 if (desc[0] == 'v') { |
2747 PrintF("%s %s:%s 0x%016" PRIx64 "%s (%s%s:%s %g%s %s:%s %g%s)\n", | 2745 PrintF("%s %s:%s 0x%016" PRIx64 "%s (%s%s:%s %g%s %s:%s %g%s)\n", |
2748 clr_fpreg_name, VRegNameForCode(i), | 2746 clr_fpreg_name, VRegNameForCode(i), |
2749 clr_fpreg_value, double_to_rawbits(dreg(i)), | 2747 clr_fpreg_value, double_to_rawbits(dreg(i)), |
2750 clr_normal, | 2748 clr_normal, |
2751 clr_fpreg_name, DRegNameForCode(i), | 2749 clr_fpreg_name, DRegNameForCode(i), |
2752 clr_fpreg_value, dreg(i), | 2750 clr_fpreg_value, dreg(i), |
2753 clr_fpreg_name, SRegNameForCode(i), | 2751 clr_fpreg_name, SRegNameForCode(i), |
2754 clr_fpreg_value, sreg(i), | 2752 clr_fpreg_value, sreg(i), |
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3420 default: | 3418 default: |
3421 UNIMPLEMENTED(); | 3419 UNIMPLEMENTED(); |
3422 } | 3420 } |
3423 } | 3421 } |
3424 | 3422 |
3425 #endif // USE_SIMULATOR | 3423 #endif // USE_SIMULATOR |
3426 | 3424 |
3427 } } // namespace v8::internal | 3425 } } // namespace v8::internal |
3428 | 3426 |
3429 #endif // V8_TARGET_ARCH_A64 | 3427 #endif // V8_TARGET_ARCH_A64 |
OLD | NEW |