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

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

Issue 192075: Rename a constant to kCallTargetAddressOffset (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 3 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/macro-assembler-arm.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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // Return the address in the constant pool of the code target address used by 428 // Return the address in the constant pool of the code target address used by
429 // the branch/call instruction at pc. 429 // the branch/call instruction at pc.
430 INLINE(static Address target_address_address_at(Address pc)); 430 INLINE(static Address target_address_address_at(Address pc));
431 431
432 // Read/Modify the code target address in the branch/call instruction at pc. 432 // Read/Modify the code target address in the branch/call instruction at pc.
433 INLINE(static Address target_address_at(Address pc)); 433 INLINE(static Address target_address_at(Address pc));
434 INLINE(static void set_target_address_at(Address pc, Address target)); 434 INLINE(static void set_target_address_at(Address pc, Address target));
435 435
436 // Distance between the instruction referring to the address of the call 436 // Distance between the instruction referring to the address of the call
437 // target (ldr pc, [target addr in const pool]) and the return address 437 // target (ldr pc, [target addr in const pool]) and the return address
438 static const int kPatchReturnSequenceLength = sizeof(Instr); 438 static const int kCallTargetAddressOffset = sizeof(Instr);
439 // Distance between start of patched return sequence and the emitted address 439 // Distance between start of patched return sequence and the emitted address
440 // to jump to. 440 // to jump to.
441 static const int kPatchReturnSequenceAddressOffset = 1; 441 static const int kPatchReturnSequenceAddressOffset = 1;
442 442
443 // Difference between address of current opcode and value read from pc 443 // Difference between address of current opcode and value read from pc
444 // register. 444 // register.
445 static const int kPcLoadDelta = 8; 445 static const int kPcLoadDelta = 8;
446 446
447 447
448 // --------------------------------------------------------------------------- 448 // ---------------------------------------------------------------------------
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 793
794 // Record reloc info for current pc_ 794 // Record reloc info for current pc_
795 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0); 795 void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0);
796 796
797 friend class RegExpMacroAssemblerARM; 797 friend class RegExpMacroAssemblerARM;
798 }; 798 };
799 799
800 } } // namespace v8::internal 800 } } // namespace v8::internal
801 801
802 #endif // V8_ARM_ASSEMBLER_ARM_H_ 802 #endif // V8_ARM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698