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

Side by Side Diff: src/arm64/assembler-arm64.cc

Issue 986553005: Contribution of PowerPC port (continuation of 422063005) - serialize.cc cleanup (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following 10 // copyright notice, this list of conditions and the following
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Add the link register (x30) to the safepoint list. 164 // Add the link register (x30) to the safepoint list.
165 list.Combine(30); 165 list.Combine(30);
166 166
167 return list; 167 return list;
168 } 168 }
169 169
170 170
171 // ----------------------------------------------------------------------------- 171 // -----------------------------------------------------------------------------
172 // Implementation of RelocInfo 172 // Implementation of RelocInfo
173 173
174 const int RelocInfo::kInternalReferenceMask = 1
175 << RelocInfo::INTERNAL_REFERENCE;
174 const int RelocInfo::kApplyMask = 0; 176 const int RelocInfo::kApplyMask = 0;
175 177
176 178
177 bool RelocInfo::IsCodedSpecially() { 179 bool RelocInfo::IsCodedSpecially() {
178 // The deserializer needs to know whether a pointer is specially coded. Being 180 // The deserializer needs to know whether a pointer is specially coded. Being
179 // specially coded on ARM64 means that it is a movz/movk sequence. We don't 181 // specially coded on ARM64 means that it is a movz/movk sequence. We don't
180 // generate those for relocatable pointers. 182 // generate those for relocatable pointers.
181 return false; 183 return false;
182 } 184 }
183 185
(...skipping 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after
3107 movz(scratch, (target_offset >> 16) & 0xFFFF, 16); 3109 movz(scratch, (target_offset >> 16) & 0xFFFF, 16);
3108 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); 3110 movk(scratch, (target_offset >> 32) & 0xFFFF, 32);
3109 DCHECK((target_offset >> 48) == 0); 3111 DCHECK((target_offset >> 48) == 0);
3110 add(rd, rd, scratch); 3112 add(rd, rd, scratch);
3111 } 3113 }
3112 3114
3113 3115
3114 } } // namespace v8::internal 3116 } } // namespace v8::internal
3115 3117
3116 #endif // V8_TARGET_ARCH_ARM64 3118 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/arm64/assembler-arm64-inl.h » ('j') | src/assembler.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698