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

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

Issue 1005183006: Serializer: serialize internal references via object visitor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix compilation 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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 // Return the code target address of the patch debug break slot 563 // Return the code target address of the patch debug break slot
564 inline static Address break_address_from_return_address(Address pc); 564 inline static Address break_address_from_return_address(Address pc);
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.
574 inline static void deserialization_set_target_internal_reference_at(
575 Address instruction, Address target);
576
573 static inline RelocInfo::Mode RelocInfoNone() { 577 static inline RelocInfo::Mode RelocInfoNone() {
574 if (kPointerSize == kInt64Size) { 578 if (kPointerSize == kInt64Size) {
575 return RelocInfo::NONE64; 579 return RelocInfo::NONE64;
576 } else { 580 } else {
577 DCHECK(kPointerSize == kInt32Size); 581 DCHECK(kPointerSize == kInt32Size);
578 return RelocInfo::NONE32; 582 return RelocInfo::NONE32;
579 } 583 }
580 } 584 }
581 585
582 inline Handle<Object> code_target_object_handle_at(Address pc); 586 inline Handle<Object> code_target_object_handle_at(Address pc);
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 private: 1885 private:
1882 Assembler* assembler_; 1886 Assembler* assembler_;
1883 #ifdef DEBUG 1887 #ifdef DEBUG
1884 int space_before_; 1888 int space_before_;
1885 #endif 1889 #endif
1886 }; 1890 };
1887 1891
1888 } } // namespace v8::internal 1892 } } // namespace v8::internal
1889 1893
1890 #endif // V8_X64_ASSEMBLER_X64_H_ 1894 #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