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

Side by Side Diff: src/ia32/assembler-ia32.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 (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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Ensure that we _never_ overflow the next field. 152 // Ensure that we _never_ overflow the next field.
153 DCHECK(NextField::is_valid(Assembler::kMaximalBufferSize)); 153 DCHECK(NextField::is_valid(Assembler::kMaximalBufferSize));
154 data_ = NextField::encode(next) | TypeField::encode(type); 154 data_ = NextField::encode(next) | TypeField::encode(type);
155 } 155 }
156 156
157 157
158 // ----------------------------------------------------------------------------- 158 // -----------------------------------------------------------------------------
159 // Implementation of RelocInfo 159 // Implementation of RelocInfo
160 160
161 161
162 const int RelocInfo::kInternalReferenceMask = 1
163 << RelocInfo::INTERNAL_REFERENCE;
162 const int RelocInfo::kApplyMask = 164 const int RelocInfo::kApplyMask =
163 RelocInfo::kCodeTargetMask | 1 << RelocInfo::RUNTIME_ENTRY | 165 RelocInfo::kCodeTargetMask | RelocInfo::kInternalReferenceMask |
164 1 << RelocInfo::JS_RETURN | 1 << RelocInfo::INTERNAL_REFERENCE | 166 1 << RelocInfo::RUNTIME_ENTRY | 1 << RelocInfo::JS_RETURN |
165 1 << RelocInfo::DEBUG_BREAK_SLOT | 1 << RelocInfo::CODE_AGE_SEQUENCE; 167 1 << RelocInfo::DEBUG_BREAK_SLOT | 1 << RelocInfo::CODE_AGE_SEQUENCE;
166 168
167 169
168 bool RelocInfo::IsCodedSpecially() { 170 bool RelocInfo::IsCodedSpecially() {
169 // The deserializer needs to know whether a pointer is specially coded. Being 171 // The deserializer needs to know whether a pointer is specially coded. Being
170 // specially coded on IA32 means that it is a relative address, as used by 172 // specially coded on IA32 means that it is a relative address, as used by
171 // branch instructions. These are also the ones that need changing when a 173 // branch instructions. These are also the ones that need changing when a
172 // code object moves. 174 // code object moves.
173 return (1 << rmode_) & kApplyMask; 175 return (1 << rmode_) & kApplyMask;
174 } 176 }
(...skipping 2648 matching lines...) Expand 10 before | Expand all | Expand 10 after
2823 fprintf(coverage_log, "%s\n", file_line); 2825 fprintf(coverage_log, "%s\n", file_line);
2824 fflush(coverage_log); 2826 fflush(coverage_log);
2825 } 2827 }
2826 } 2828 }
2827 2829
2828 #endif 2830 #endif
2829 2831
2830 } } // namespace v8::internal 2832 } } // namespace v8::internal
2831 2833
2832 #endif // V8_TARGET_ARCH_IA32 2834 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698