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

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

Issue 1025453003: MIPS: Fix 'MIPS: Serializer: serialize internal references via object visitor.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix comment. 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 | « 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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 // Return the code target address of the patch debug break slot 790 // Return the code target address of the patch debug break slot
791 INLINE(static Address break_address_from_return_address(Address pc)); 791 INLINE(static Address break_address_from_return_address(Address pc));
792 792
793 // This sets the branch destination (which is in the constant pool on ARM). 793 // This sets the branch destination (which is in the constant pool on ARM).
794 // This is for calls and branches within generated code. 794 // This is for calls and branches within generated code.
795 inline static void deserialization_set_special_target_at( 795 inline static void deserialization_set_special_target_at(
796 Address constant_pool_entry, Code* code, Address target); 796 Address constant_pool_entry, Code* code, Address target);
797 797
798 // This sets the internal reference at the pc. 798 // This sets the internal reference at the pc.
799 inline static void deserialization_set_target_internal_reference_at( 799 inline static void deserialization_set_target_internal_reference_at(
800 Address pc, Address target); 800 Address pc, Address target,
801 RelocInfo::Mode mode = RelocInfo::INTERNAL_REFERENCE);
801 802
802 // Here we are patching the address in the constant pool, not the actual call 803 // Here we are patching the address in the constant pool, not the actual call
803 // instruction. The address in the constant pool is the same size as a 804 // instruction. The address in the constant pool is the same size as a
804 // pointer. 805 // pointer.
805 static const int kSpecialTargetSize = kPointerSize; 806 static const int kSpecialTargetSize = kPointerSize;
806 807
807 // Size of an instruction. 808 // Size of an instruction.
808 static const int kInstrSize = sizeof(Instr); 809 static const int kInstrSize = sizeof(Instr);
809 810
810 // Distance between start of patched return sequence and the emitted address 811 // Distance between start of patched return sequence and the emitted address
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 public: 1689 public:
1689 explicit EnsureSpace(Assembler* assembler) { 1690 explicit EnsureSpace(Assembler* assembler) {
1690 assembler->CheckBuffer(); 1691 assembler->CheckBuffer();
1691 } 1692 }
1692 }; 1693 };
1693 1694
1694 1695
1695 } } // namespace v8::internal 1696 } } // namespace v8::internal
1696 1697
1697 #endif // V8_ARM_ASSEMBLER_ARM_H_ 1698 #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