| Index: src/arm/full-codegen-arm.cc
|
| diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc
|
| index e7555cba051eedc43d1d45078120e99e5769ef66..e214dcc348c9caefff86dcb91f15ecb1fa4da8d0 100644
|
| --- a/src/arm/full-codegen-arm.cc
|
| +++ b/src/arm/full-codegen-arm.cc
|
| @@ -2361,6 +2361,18 @@ void FullCodeGenerator::EmitCallWithStub(Call* expr, CallFunctionFlags flags) {
|
| }
|
| // Record source position for debugger.
|
| SetSourcePosition(expr->position());
|
| +
|
| + // Record call targets in unoptimized code, but not in the snapshot.
|
| + if (!Serializer::enabled()) {
|
| + flags = static_cast<CallFunctionFlags>(flags | RECORD_CALL_TARGET);
|
| + Handle<Object> uninitialized =
|
| + TypeFeedbackCells::UninitializedSentinel(isolate());
|
| + Handle<JSGlobalPropertyCell> cell =
|
| + isolate()->factory()->NewJSGlobalPropertyCell(uninitialized);
|
| + RecordTypeFeedbackCell(expr->id(), cell);
|
| + __ mov(r2, Operand(cell));
|
| + }
|
| +
|
| CallFunctionStub stub(arg_count, flags);
|
| __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize));
|
| __ CallStub(&stub);
|
|
|