Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index fc33139cb01b0be2b882728f9f061a8ecc5f44e5..be7958edc35387db469ae508fb6339e6674d784e 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -4017,8 +4017,12 @@ void LCodeGen::DoCallWithDescriptor(LCallWithDescriptor* instr) { |
generator.BeforeCall(__ CallSize(code, RelocInfo::CODE_TARGET)); |
PlatformInterfaceDescriptor* call_descriptor = |
instr->descriptor().platform_specific_descriptor(); |
- __ Call(code, RelocInfo::CODE_TARGET, TypeFeedbackId::None(), al, |
- call_descriptor->storage_mode()); |
+ if (call_descriptor != NULL) { |
+ __ Call(code, RelocInfo::CODE_TARGET, TypeFeedbackId::None(), al, |
+ call_descriptor->storage_mode()); |
+ } else { |
+ __ Call(code, RelocInfo::CODE_TARGET, TypeFeedbackId::None(), al); |
+ } |
} else { |
DCHECK(instr->target()->IsRegister()); |
Register target = ToRegister(instr->target()); |