Index: src/arm/stub-cache-arm.cc |
=================================================================== |
--- src/arm/stub-cache-arm.cc (revision 4791) |
+++ src/arm/stub-cache-arm.cc (working copy) |
@@ -1008,6 +1008,12 @@ |
} |
+void CallStubCompiler::GenerateMissBranch() { |
+ Handle<Code> ic = ComputeCallMiss(arguments().immediate(), kind_); |
+ __ Jump(ic, RelocInfo::CODE_TARGET); |
+} |
+ |
+ |
Object* CallStubCompiler::CompileCallField(JSObject* object, |
JSObject* holder, |
int index, |
@@ -1034,8 +1040,7 @@ |
// Handle call cache miss. |
__ bind(&miss); |
- Handle<Code> ic = ComputeCallMiss(arguments().immediate()); |
- __ Jump(ic, RelocInfo::CODE_TARGET); |
+ GenerateMissBranch(); |
// Return the generated code. |
return GetCode(FIELD, name); |
@@ -1084,8 +1089,7 @@ |
// Handle call cache miss. |
__ bind(&miss); |
- Handle<Code> ic = ComputeCallMiss(arguments().immediate()); |
- __ Jump(ic, RelocInfo::CODE_TARGET); |
+ GenerateMissBranch(); |
// Return the generated code. |
return GetCode(function); |
@@ -1134,8 +1138,7 @@ |
// Handle call cache miss. |
__ bind(&miss); |
- Handle<Code> ic = ComputeCallMiss(arguments().immediate()); |
- __ Jump(ic, RelocInfo::CODE_TARGET); |
+ GenerateMissBranch(); |
// Return the generated code. |
return GetCode(function); |
@@ -1309,8 +1312,7 @@ |
} |
__ bind(&miss_in_smi_check); |
- Handle<Code> ic = ComputeCallMiss(arguments().immediate()); |
- __ Jump(ic, RelocInfo::CODE_TARGET); |
+ GenerateMissBranch(); |
// Return the generated code. |
return GetCode(function); |
@@ -1356,8 +1358,7 @@ |
// Handle call cache miss. |
__ bind(&miss); |
- Handle<Code> ic = ComputeCallMiss(arguments().immediate()); |
- __ Jump(ic, RelocInfo::CODE_TARGET); |
+ GenerateMissBranch(); |
// Return the generated code. |
return GetCode(INTERCEPTOR, name); |
@@ -1439,8 +1440,7 @@ |
// Handle call cache miss. |
__ bind(&miss); |
__ IncrementCounter(&Counters::call_global_inline_miss, 1, r1, r3); |
- Handle<Code> ic = ComputeCallMiss(arguments().immediate()); |
- __ Jump(ic, RelocInfo::CODE_TARGET); |
+ GenerateMissBranch(); |
// Return the generated code. |
return GetCode(NORMAL, name); |