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

Side by Side Diff: src/x64/assembler-x64.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/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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3029 matching lines...) Expand 10 before | Expand all | Expand 10 after
3040 3040
3041 void Assembler::RecordComment(const char* msg, bool force) { 3041 void Assembler::RecordComment(const char* msg, bool force) {
3042 if (FLAG_code_comments || force) { 3042 if (FLAG_code_comments || force) {
3043 EnsureSpace ensure_space(this); 3043 EnsureSpace ensure_space(this);
3044 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); 3044 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
3045 } 3045 }
3046 } 3046 }
3047 3047
3048 3048
3049 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | 3049 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask |
3050 1 << RelocInfo::INTERNAL_REFERENCE; 3050 1 << RelocInfo::INTERNAL_REFERENCE |
3051 1 << RelocInfo::CODE_AGE_SEQUENCE;
3051 3052
3052 3053
3053 bool RelocInfo::IsCodedSpecially() { 3054 bool RelocInfo::IsCodedSpecially() {
3054 // The deserializer needs to know whether a pointer is specially coded. Being 3055 // The deserializer needs to know whether a pointer is specially coded. Being
3055 // specially coded on x64 means that it is a relative 32 bit address, as used 3056 // specially coded on x64 means that it is a relative 32 bit address, as used
3056 // by branch instructions. 3057 // by branch instructions.
3057 return (1 << rmode_) & kApplyMask; 3058 return (1 << rmode_) & kApplyMask;
3058 } 3059 }
3059 3060
3060 } } // namespace v8::internal 3061 } } // namespace v8::internal
3061 3062
3062 #endif // V8_TARGET_ARCH_X64 3063 #endif // V8_TARGET_ARCH_X64
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