| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions | 5 // modification, are permitted provided that the following conditions |
| 6 // are met: | 6 // are met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 // of m. m must be a power of 2 (>= 4). | 602 // of m. m must be a power of 2 (>= 4). |
| 603 void Align(int m); | 603 void Align(int m); |
| 604 // Insert the smallest number of zero bytes possible to align the pc offset | 604 // Insert the smallest number of zero bytes possible to align the pc offset |
| 605 // to a mulitple of m. m must be a power of 2 (>= 2). | 605 // to a mulitple of m. m must be a power of 2 (>= 2). |
| 606 void DataAlign(int m); | 606 void DataAlign(int m); |
| 607 // Aligns code to something that's optimal for a jump target for the platform. | 607 // Aligns code to something that's optimal for a jump target for the platform. |
| 608 void CodeTargetAlign(); | 608 void CodeTargetAlign(); |
| 609 | 609 |
| 610 void breakpoint(bool do_print) { | 610 void breakpoint(bool do_print) { |
| 611 if (do_print) { | 611 if (do_print) { |
| 612 printf("DebugBreak is inserted to %p\n", pc_); | 612 PrintF("DebugBreak is inserted to %p\n", static_cast<void*>(pc_)); |
| 613 } | 613 } |
| 614 #if V8_HOST_ARCH_64_BIT | 614 #if V8_HOST_ARCH_64_BIT |
| 615 int64_t value = reinterpret_cast<uint64_t>(&v8::base::OS::DebugBreak); | 615 int64_t value = reinterpret_cast<uint64_t>(&v8::base::OS::DebugBreak); |
| 616 int32_t hi_32 = static_cast<int64_t>(value) >> 32; | 616 int32_t hi_32 = static_cast<int64_t>(value) >> 32; |
| 617 int32_t lo_32 = static_cast<int32_t>(value); | 617 int32_t lo_32 = static_cast<int32_t>(value); |
| 618 | 618 |
| 619 iihf(r1, Operand(hi_32)); | 619 iihf(r1, Operand(hi_32)); |
| 620 iilf(r1, Operand(lo_32)); | 620 iilf(r1, Operand(lo_32)); |
| 621 #else | 621 #else |
| 622 iilf(r1, Operand(reinterpret_cast<uint32_t>(&v8::base::OS::DebugBreak))); | 622 iilf(r1, Operand(reinterpret_cast<uint32_t>(&v8::base::OS::DebugBreak))); |
| (...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1459 | 1459 |
| 1460 class EnsureSpace BASE_EMBEDDED { | 1460 class EnsureSpace BASE_EMBEDDED { |
| 1461 public: | 1461 public: |
| 1462 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } | 1462 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } |
| 1463 }; | 1463 }; |
| 1464 | 1464 |
| 1465 } // namespace internal | 1465 } // namespace internal |
| 1466 } // namespace v8 | 1466 } // namespace v8 |
| 1467 | 1467 |
| 1468 #endif // V8_S390_ASSEMBLER_S390_H_ | 1468 #endif // V8_S390_ASSEMBLER_S390_H_ |
| OLD | NEW |