Commit 253d1550 authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Drop unused Assembler::set_external_target_at() method.

R=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/85793002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18055 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 80545b59
......@@ -457,12 +457,6 @@ void Assembler::deserialization_set_special_target_at(
}
void Assembler::set_external_target_at(Address constant_pool_entry,
Address target) {
Memory::Address_at(constant_pool_entry) = target;
}
static Instr EncodeMovwImmediate(uint32_t immediate) {
ASSERT(immediate < 0x10000);
return ((immediate & 0xf000) << 4) | (immediate & 0xfff);
......
......@@ -803,11 +803,6 @@ class Assembler : public AssemblerBase {
inline static void deserialization_set_special_target_at(
Address constant_pool_entry, Address target);
// This sets the branch destination (which is in the constant pool on ARM).
// This is for calls and branches to runtime code.
inline static void set_external_target_at(Address constant_pool_entry,
Address target);
// Here we are patching the address in the constant pool, not the actual call
// instruction. The address in the constant pool is the same size as a
// pointer.
......
......@@ -638,13 +638,6 @@ class Assembler : public AssemblerBase {
set_target_address_at(instruction_payload, target);
}
// This sets the branch destination (which is in the instruction on x86).
// This is for calls and branches to runtime code.
inline static void set_external_target_at(Address instruction_payload,
Address target) {
set_target_address_at(instruction_payload, target);
}
static const int kSpecialTargetSize = kPointerSize;
// Distance between the address of the code target in the call instruction
......
......@@ -537,13 +537,6 @@ class Assembler : public AssemblerBase {
target);
}
// This sets the branch destination.
// This is for calls and branches to runtime code.
inline static void set_external_target_at(Address instruction_payload,
Address target) {
set_target_address_at(instruction_payload, target);
}
// Size of an instruction.
static const int kInstrSize = sizeof(Instr);
......
......@@ -586,13 +586,6 @@ class Assembler : public AssemblerBase {
set_target_address_at(instruction_payload, target);
}
// This sets the branch destination (which is a load instruction on x64).
// This is for calls and branches to runtime code.
inline static void set_external_target_at(Address instruction_payload,
Address target) {
*reinterpret_cast<Address*>(instruction_payload) = target;
}
inline Handle<Object> code_target_object_handle_at(Address pc);
inline Address runtime_entry_at(Address pc);
// Number of bytes taken up by the branch target in the code.
......
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