Add missing file to change 2030. x64/assembler-x64-inl.h was not uploaded.

Review URL: http://codereview.chromium.org/113761

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2031 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
whesse@chromium.org 2009-05-22 09:04:06 +00:00
parent 5f5f33e4fb
commit 1f7b98689d

View File

@ -37,6 +37,39 @@ Condition NegateCondition(Condition cc) {
}
// -----------------------------------------------------------------------------
// Implementation of Assembler
#define EMIT(x) \
*pc_++ = (x)
void Assembler::emit_rex_64(Register reg, Register rm_reg) {
EMIT(0x48 | (reg.code() & 0x8) >> 1 | rm_reg.code() >> 3);
}
void Assembler::emit_rex_64(Register reg, const Operand& op) {
EMIT(0x48 | (reg.code() & 0x8) >> 1 | op.rex_);
}
void Assembler::set_target_address_at(byte* location, byte* value) {
UNIMPLEMENTED();
}
byte* Assembler::target_address_at(byte* location) {
UNIMPLEMENTED();
return NULL;
}
#undef EMIT
// -----------------------------------------------------------------------------
// Implementation of RelocInfo
// The modes possibly affected by apply must be in kApplyMask.
void RelocInfo::apply(int delta) {
if (rmode_ == RUNTIME_ENTRY || IsCodeTarget(rmode_)) {
@ -71,19 +104,6 @@ void RelocInfo::set_target_address(Address target) {
ASSERT(IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY);
Assembler::set_target_address_at(pc_, target);
}
void Assembler::set_target_address_at(byte* location, byte* value) {
UNIMPLEMENTED();
}
byte* Assembler::target_address_at(byte* location) {
UNIMPLEMENTED();
return NULL;
}
Object* RelocInfo::target_object() {
ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
return *reinterpret_cast<Object**>(pc_);