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

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: address formatting comment 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 763 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 } 774 }
775 775
776 // Return the code target address at a call site from the return address 776 // Return the code target address at a call site from the return address
777 // of that call in the instruction stream. 777 // of that call in the instruction stream.
778 INLINE(static Address target_address_from_return_address(Address pc)); 778 INLINE(static Address target_address_from_return_address(Address pc));
779 779
780 // Given the address of the beginning of a call, return the address 780 // Given the address of the beginning of a call, return the address
781 // in the instruction stream that the call will return from. 781 // in the instruction stream that the call will return from.
782 INLINE(static Address return_address_from_call_start(Address pc)); 782 INLINE(static Address return_address_from_call_start(Address pc));
783 783
784 // Return the code target address of the patch debug break slot
785 INLINE(static Address break_address_from_return_address(Address pc));
786
784 // This sets the branch destination (which is in the constant pool on ARM). 787 // This sets the branch destination (which is in the constant pool on ARM).
785 // This is for calls and branches within generated code. 788 // This is for calls and branches within generated code.
786 inline static void deserialization_set_special_target_at( 789 inline static void deserialization_set_special_target_at(
787 Address constant_pool_entry, Code* code, Address target); 790 Address constant_pool_entry, Code* code, Address target);
788 791
789 // Here we are patching the address in the constant pool, not the actual call 792 // Here we are patching the address in the constant pool, not the actual call
790 // instruction. The address in the constant pool is the same size as a 793 // instruction. The address in the constant pool is the same size as a
791 // pointer. 794 // pointer.
792 static const int kSpecialTargetSize = kPointerSize; 795 static const int kSpecialTargetSize = kPointerSize;
793 796
(...skipping 830 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