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

Side by Side Diff: src/x64/assembler-x64.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 | « src/serialize.cc ('k') | src/x64/assembler-x64-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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 565
566 // This sets the branch destination (which is in the instruction on x64). 566 // This sets the branch destination (which is in the instruction on x64).
567 // This is for calls and branches within generated code. 567 // This is for calls and branches within generated code.
568 inline static void deserialization_set_special_target_at( 568 inline static void deserialization_set_special_target_at(
569 Address instruction_payload, Code* code, Address target) { 569 Address instruction_payload, Code* code, Address target) {
570 set_target_address_at(instruction_payload, code, target); 570 set_target_address_at(instruction_payload, code, target);
571 } 571 }
572 572
573 // This sets the internal reference at the pc. 573 // This sets the internal reference at the pc.
574 inline static void deserialization_set_target_internal_reference_at( 574 inline static void deserialization_set_target_internal_reference_at(
575 Address instruction, Address target); 575 Address pc, Address target,
576 RelocInfo::Mode mode = RelocInfo::INTERNAL_REFERENCE);
576 577
577 static inline RelocInfo::Mode RelocInfoNone() { 578 static inline RelocInfo::Mode RelocInfoNone() {
578 if (kPointerSize == kInt64Size) { 579 if (kPointerSize == kInt64Size) {
579 return RelocInfo::NONE64; 580 return RelocInfo::NONE64;
580 } else { 581 } else {
581 DCHECK(kPointerSize == kInt32Size); 582 DCHECK(kPointerSize == kInt32Size);
582 return RelocInfo::NONE32; 583 return RelocInfo::NONE32;
583 } 584 }
584 } 585 }
585 586
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1885 private: 1886 private:
1886 Assembler* assembler_; 1887 Assembler* assembler_;
1887 #ifdef DEBUG 1888 #ifdef DEBUG
1888 int space_before_; 1889 int space_before_;
1889 #endif 1890 #endif
1890 }; 1891 };
1891 1892
1892 } } // namespace v8::internal 1893 } } // namespace v8::internal
1893 1894
1894 #endif // V8_X64_ASSEMBLER_X64_H_ 1895 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/serialize.cc ('k') | src/x64/assembler-x64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698