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

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

Issue 427863003: Abstract out fetching of break_address in debug mode (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: update to catch 2nd usage Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm/assembler-arm-inl.h » ('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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 803
804 // Distance between start of patched debug break slot and the emitted address 804 // Distance between start of patched debug break slot and the emitted address
805 // to jump to. 805 // to jump to.
806 // Patched debug break slot code is: 806 // Patched debug break slot code is:
807 // ldr ip, [pc, #0] @ emited address and start 807 // ldr ip, [pc, #0] @ emited address and start
808 // blx ip 808 // blx ip
809 static const int kPatchDebugBreakSlotAddressOffset = 0 * kInstrSize; 809 static const int kPatchDebugBreakSlotAddressOffset = 0 * kInstrSize;
810 810
811 static const int kPatchDebugBreakSlotReturnOffset = 2 * kInstrSize; 811 static const int kPatchDebugBreakSlotReturnOffset = 2 * kInstrSize;
812 812
813 // Return the code target address of the patch debug break slot
814 inline static Address break_address_from_break_address(Address pc);
rmcilroy 2014/07/30 10:05:36 Please use the INLINE() macro and move up to be be
andrew_low 2014/07/30 14:06:46 Done.
815
813 // Difference between address of current opcode and value read from pc 816 // Difference between address of current opcode and value read from pc
814 // register. 817 // register.
815 static const int kPcLoadDelta = 8; 818 static const int kPcLoadDelta = 8;
816 819
817 static const int kJSReturnSequenceInstructions = 4; 820 static const int kJSReturnSequenceInstructions = 4;
818 static const int kDebugBreakSlotInstructions = 3; 821 static const int kDebugBreakSlotInstructions = 3;
819 static const int kDebugBreakSlotLength = 822 static const int kDebugBreakSlotLength =
820 kDebugBreakSlotInstructions * kInstrSize; 823 kDebugBreakSlotInstructions * kInstrSize;
821 824
822 // --------------------------------------------------------------------------- 825 // ---------------------------------------------------------------------------
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
1624 public: 1627 public:
1625 explicit EnsureSpace(Assembler* assembler) { 1628 explicit EnsureSpace(Assembler* assembler) {
1626 assembler->CheckBuffer(); 1629 assembler->CheckBuffer();
1627 } 1630 }
1628 }; 1631 };
1629 1632
1630 1633
1631 } } // namespace v8::internal 1634 } } // namespace v8::internal
1632 1635
1633 #endif // V8_ARM_ASSEMBLER_ARM_H_ 1636 #endif // V8_ARM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/assembler-arm-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698