Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Side by Side Diff: src/ppc/assembler-ppc.h

Issue 967323002: Refactor BreakLocationIterator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: static_cast instead Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects.cc ('k') | src/ppc/assembler-ppc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 static const int kPatchReturnSequenceAddressOffset = 0 * kInstrSize; 652 static const int kPatchReturnSequenceAddressOffset = 0 * kInstrSize;
653 653
654 // Distance between start of patched debug break slot and the emitted address 654 // Distance between start of patched debug break slot and the emitted address
655 // to jump to. 655 // to jump to.
656 // Patched debug break slot code is a FIXED_SEQUENCE: 656 // Patched debug break slot code is a FIXED_SEQUENCE:
657 // mov r0, <address> 657 // mov r0, <address>
658 // mtlr r0 658 // mtlr r0
659 // blrl 659 // blrl
660 static const int kPatchDebugBreakSlotAddressOffset = 0 * kInstrSize; 660 static const int kPatchDebugBreakSlotAddressOffset = 0 * kInstrSize;
661 661
662 // This is the length of the BreakLocationIterator::SetDebugBreakAtReturn() 662 // This is the length of the BreakLocation::SetDebugBreakAtReturn()
663 // code patch FIXED_SEQUENCE 663 // code patch FIXED_SEQUENCE
664 static const int kJSReturnSequenceInstructions = kMovInstructions + 3; 664 static const int kJSReturnSequenceInstructions = kMovInstructions + 3;
665 static const int kJSReturnSequenceLength =
666 kJSReturnSequenceInstructions * kInstrSize;
665 667
666 // This is the length of the code sequence from SetDebugBreakAtSlot() 668 // This is the length of the code sequence from SetDebugBreakAtSlot()
667 // FIXED_SEQUENCE 669 // FIXED_SEQUENCE
668 static const int kDebugBreakSlotInstructions = kMovInstructions + 2; 670 static const int kDebugBreakSlotInstructions = kMovInstructions + 2;
669 static const int kDebugBreakSlotLength = 671 static const int kDebugBreakSlotLength =
670 kDebugBreakSlotInstructions * kInstrSize; 672 kDebugBreakSlotInstructions * kInstrSize;
671 673
672 static inline int encode_crbit(const CRegister& cr, enum CRBit crbit) { 674 static inline int encode_crbit(const CRegister& cr, enum CRBit crbit) {
673 return ((cr.code() * CRWIDTH) + crbit); 675 return ((cr.code() * CRWIDTH) + crbit);
674 } 676 }
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 1433
1432 1434
1433 class EnsureSpace BASE_EMBEDDED { 1435 class EnsureSpace BASE_EMBEDDED {
1434 public: 1436 public:
1435 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); } 1437 explicit EnsureSpace(Assembler* assembler) { assembler->CheckBuffer(); }
1436 }; 1438 };
1437 } 1439 }
1438 } // namespace v8::internal 1440 } // namespace v8::internal
1439 1441
1440 #endif // V8_PPC_ASSEMBLER_PPC_H_ 1442 #endif // V8_PPC_ASSEMBLER_PPC_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/ppc/assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698