Commit 1f7b9868 authored by whesse@chromium.org's avatar whesse@chromium.org

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
parent 5f5f33e4
......@@ -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_);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment