Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 095631d6428cea1abe0f3a9937fdc85e994c4f14..b302fa0b939686352f3304104dab4d005f6bfa95 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -1121,11 +1121,7 @@ Object* CallStubCompiler::CompileArrayPushCall(Object* object, |
__ Jump(ic, RelocInfo::CODE_TARGET); |
// Return the generated code. |
- String* function_name = NULL; |
- if (function->shared()->name()->IsString()) { |
- function_name = String::cast(function->shared()->name()); |
- } |
- return GetCode(CONSTANT_FUNCTION, function_name); |
+ return GetCode(function); |
} |
@@ -1175,11 +1171,7 @@ Object* CallStubCompiler::CompileArrayPopCall(Object* object, |
__ Jump(ic, RelocInfo::CODE_TARGET); |
// Return the generated code. |
- String* function_name = NULL; |
- if (function->shared()->name()->IsString()) { |
- function_name = String::cast(function->shared()->name()); |
- } |
- return GetCode(CONSTANT_FUNCTION, function_name); |
+ return GetCode(function); |
} |
@@ -1194,9 +1186,9 @@ Object* CallStubCompiler::CompileCallConstant(Object* object, |
// ----------------------------------- |
SharedFunctionInfo* function_info = function->shared(); |
if (function_info->HasCustomCallGenerator()) { |
- CustomCallGenerator generator = |
- ToCData<CustomCallGenerator>(function_info->function_data()); |
- Object* result = generator(this, object, holder, function, name, check); |
+ const int id = function_info->custom_call_generator_id(); |
+ Object* result = |
+ CompileCustomCall(id, object, holder, function, name, check); |
// undefined means bail out to regular compiler. |
if (!result->IsUndefined()) { |
return result; |
@@ -1334,11 +1326,7 @@ Object* CallStubCompiler::CompileCallConstant(Object* object, |
__ Jump(ic, RelocInfo::CODE_TARGET); |
// Return the generated code. |
- String* function_name = NULL; |
- if (function->shared()->name()->IsString()) { |
- function_name = String::cast(function->shared()->name()); |
- } |
- return GetCode(CONSTANT_FUNCTION, function_name); |
+ return GetCode(function); |
} |