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

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

Issue 6469053: x64: implement apply with arguments in lithium backend. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 3096 matching lines...) Expand 10 before | Expand all | Expand 10 after
3107 } 3107 }
3108 3108
3109 3109
3110 void Assembler::RecordDebugBreakSlot() { 3110 void Assembler::RecordDebugBreakSlot() {
3111 positions_recorder()->WriteRecordedPositions(); 3111 positions_recorder()->WriteRecordedPositions();
3112 EnsureSpace ensure_space(this); 3112 EnsureSpace ensure_space(this);
3113 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT); 3113 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT);
3114 } 3114 }
3115 3115
3116 3116
3117 void Assembler::RecordComment(const char* msg) { 3117 void Assembler::RecordComment(const char* msg, bool force) {
3118 if (FLAG_code_comments) { 3118 if (FLAG_code_comments || force) {
3119 EnsureSpace ensure_space(this); 3119 EnsureSpace ensure_space(this);
3120 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); 3120 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
3121 } 3121 }
3122 } 3122 }
3123 3123
3124 3124
3125 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | 3125 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask |
3126 1 << RelocInfo::INTERNAL_REFERENCE; 3126 1 << RelocInfo::INTERNAL_REFERENCE;
3127 3127
3128 3128
3129 bool RelocInfo::IsCodedSpecially() { 3129 bool RelocInfo::IsCodedSpecially() {
3130 // The deserializer needs to know whether a pointer is specially coded. Being 3130 // The deserializer needs to know whether a pointer is specially coded. Being
3131 // specially coded on x64 means that it is a relative 32 bit address, as used 3131 // specially coded on x64 means that it is a relative 32 bit address, as used
3132 // by branch instructions. 3132 // by branch instructions.
3133 return (1 << rmode_) & kApplyMask; 3133 return (1 << rmode_) & kApplyMask;
3134 } 3134 }
3135 3135
3136 3136
3137 3137
3138 } } // namespace v8::internal 3138 } } // namespace v8::internal
3139 3139
3140 #endif // V8_TARGET_ARCH_X64 3140 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698