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

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

Issue 10837037: Age code to allow reclaiming old unexecuted functions (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/ia32/assembler-ia32-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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 } 162 }
163 163
164 164
165 // ----------------------------------------------------------------------------- 165 // -----------------------------------------------------------------------------
166 // Implementation of RelocInfo 166 // Implementation of RelocInfo
167 167
168 168
169 const int RelocInfo::kApplyMask = 169 const int RelocInfo::kApplyMask =
170 RelocInfo::kCodeTargetMask | 1 << RelocInfo::RUNTIME_ENTRY | 170 RelocInfo::kCodeTargetMask | 1 << RelocInfo::RUNTIME_ENTRY |
171 1 << RelocInfo::JS_RETURN | 1 << RelocInfo::INTERNAL_REFERENCE | 171 1 << RelocInfo::JS_RETURN | 1 << RelocInfo::INTERNAL_REFERENCE |
172 1 << RelocInfo::DEBUG_BREAK_SLOT; 172 1 << RelocInfo::DEBUG_BREAK_SLOT | 1 << RelocInfo::CODE_AGE_SEQUENCE;
173 173
174 174
175 bool RelocInfo::IsCodedSpecially() { 175 bool RelocInfo::IsCodedSpecially() {
176 // The deserializer needs to know whether a pointer is specially coded. Being 176 // The deserializer needs to know whether a pointer is specially coded. Being
177 // specially coded on IA32 means that it is a relative address, as used by 177 // specially coded on IA32 means that it is a relative address, as used by
178 // branch instructions. These are also the ones that need changing when a 178 // branch instructions. These are also the ones that need changing when a
179 // code object moves. 179 // code object moves.
180 return (1 << rmode_) & kApplyMask; 180 return (1 << rmode_) & kApplyMask;
181 } 181 }
182 182
(...skipping 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after
2665 fprintf(coverage_log, "%s\n", file_line); 2665 fprintf(coverage_log, "%s\n", file_line);
2666 fflush(coverage_log); 2666 fflush(coverage_log);
2667 } 2667 }
2668 } 2668 }
2669 2669
2670 #endif 2670 #endif
2671 2671
2672 } } // namespace v8::internal 2672 } } // namespace v8::internal
2673 2673
2674 #endif // V8_TARGET_ARCH_IA32 2674 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/ia32/assembler-ia32-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698