Remove one-line helper used in two places.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9858 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 7a25c43a
...@@ -47,11 +47,6 @@ namespace internal { ...@@ -47,11 +47,6 @@ namespace internal {
#define __ ACCESS_MASM(masm_) #define __ ACCESS_MASM(masm_)
static unsigned GetPropertyId(Property* property) {
return property->id();
}
// A patch site is a location in the code which it is possible to patch. This // A patch site is a location in the code which it is possible to patch. This
// class has a number of methods to emit the code which is patchable and the // class has a number of methods to emit the code which is patchable and the
// method EmitPatchInfo to record a marker back to the patchable code. This // method EmitPatchInfo to record a marker back to the patchable code. This
...@@ -1734,7 +1729,7 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { ...@@ -1734,7 +1729,7 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) {
__ mov(r2, Operand(key->handle())); __ mov(r2, Operand(key->handle()));
// Call load IC. It has arguments receiver and property name r0 and r2. // Call load IC. It has arguments receiver and property name r0 and r2.
Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize();
__ Call(ic, RelocInfo::CODE_TARGET, GetPropertyId(prop)); __ Call(ic, RelocInfo::CODE_TARGET, prop->id());
} }
...@@ -1742,7 +1737,7 @@ void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { ...@@ -1742,7 +1737,7 @@ void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) {
SetSourcePosition(prop->position()); SetSourcePosition(prop->position());
// Call keyed load IC. It has arguments key and receiver in r0 and r1. // Call keyed load IC. It has arguments key and receiver in r0 and r1.
Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
__ Call(ic, RelocInfo::CODE_TARGET, GetPropertyId(prop)); __ Call(ic, RelocInfo::CODE_TARGET, prop->id());
} }
......
...@@ -44,11 +44,6 @@ namespace internal { ...@@ -44,11 +44,6 @@ namespace internal {
#define __ ACCESS_MASM(masm_) #define __ ACCESS_MASM(masm_)
static unsigned GetPropertyId(Property* property) {
return property->id();
}
class JumpPatchSite BASE_EMBEDDED { class JumpPatchSite BASE_EMBEDDED {
public: public:
explicit JumpPatchSite(MacroAssembler* masm) : masm_(masm) { explicit JumpPatchSite(MacroAssembler* masm) : masm_(masm) {
...@@ -1636,14 +1631,14 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { ...@@ -1636,14 +1631,14 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) {
ASSERT(!key->handle()->IsSmi()); ASSERT(!key->handle()->IsSmi());
__ mov(ecx, Immediate(key->handle())); __ mov(ecx, Immediate(key->handle()));
Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize();
__ call(ic, RelocInfo::CODE_TARGET, GetPropertyId(prop)); __ call(ic, RelocInfo::CODE_TARGET, prop->id());
} }
void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) {
SetSourcePosition(prop->position()); SetSourcePosition(prop->position());
Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
__ call(ic, RelocInfo::CODE_TARGET, GetPropertyId(prop)); __ call(ic, RelocInfo::CODE_TARGET, prop->id());
} }
......
...@@ -55,11 +55,6 @@ namespace internal { ...@@ -55,11 +55,6 @@ namespace internal {
#define __ ACCESS_MASM(masm_) #define __ ACCESS_MASM(masm_)
static unsigned GetPropertyId(Property* property) {
return property->id();
}
// A patch site is a location in the code which it is possible to patch. This // A patch site is a location in the code which it is possible to patch. This
// class has a number of methods to emit the code which is patchable and the // class has a number of methods to emit the code which is patchable and the
// method EmitPatchInfo to record a marker back to the patchable code. This // method EmitPatchInfo to record a marker back to the patchable code. This
...@@ -1748,7 +1743,7 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { ...@@ -1748,7 +1743,7 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) {
__ li(a2, Operand(key->handle())); __ li(a2, Operand(key->handle()));
// Call load IC. It has arguments receiver and property name a0 and a2. // Call load IC. It has arguments receiver and property name a0 and a2.
Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize();
__ Call(ic, RelocInfo::CODE_TARGET, GetPropertyId(prop)); __ Call(ic, RelocInfo::CODE_TARGET, prop->id());
} }
...@@ -1757,7 +1752,7 @@ void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { ...@@ -1757,7 +1752,7 @@ void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) {
__ mov(a0, result_register()); __ mov(a0, result_register());
// Call keyed load IC. It has arguments key and receiver in a0 and a1. // Call keyed load IC. It has arguments key and receiver in a0 and a1.
Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
__ Call(ic, RelocInfo::CODE_TARGET, GetPropertyId(prop)); __ Call(ic, RelocInfo::CODE_TARGET, prop->id());
} }
......
...@@ -44,11 +44,6 @@ namespace internal { ...@@ -44,11 +44,6 @@ namespace internal {
#define __ ACCESS_MASM(masm_) #define __ ACCESS_MASM(masm_)
static unsigned GetPropertyId(Property* property) {
return property->id();
}
class JumpPatchSite BASE_EMBEDDED { class JumpPatchSite BASE_EMBEDDED {
public: public:
explicit JumpPatchSite(MacroAssembler* masm) : masm_(masm) { explicit JumpPatchSite(MacroAssembler* masm) : masm_(masm) {
...@@ -1688,14 +1683,14 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) { ...@@ -1688,14 +1683,14 @@ void FullCodeGenerator::EmitNamedPropertyLoad(Property* prop) {
Literal* key = prop->key()->AsLiteral(); Literal* key = prop->key()->AsLiteral();
__ Move(rcx, key->handle()); __ Move(rcx, key->handle());
Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize(); Handle<Code> ic = isolate()->builtins()->LoadIC_Initialize();
__ call(ic, RelocInfo::CODE_TARGET, GetPropertyId(prop)); __ call(ic, RelocInfo::CODE_TARGET, prop->id());
} }
void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) { void FullCodeGenerator::EmitKeyedPropertyLoad(Property* prop) {
SetSourcePosition(prop->position()); SetSourcePosition(prop->position());
Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
__ call(ic, RelocInfo::CODE_TARGET, GetPropertyId(prop)); __ call(ic, RelocInfo::CODE_TARGET, prop->id());
} }
......
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