| Index: src/x64/full-codegen-x64.cc
|
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
|
| index e0000f8743e78e3ab3c1005a35291a1a8f7f68ac..a6c4c99785e5d45f39389e49e5bb9708b9b97439 100644
|
| --- a/src/x64/full-codegen-x64.cc
|
| +++ b/src/x64/full-codegen-x64.cc
|
| @@ -2273,6 +2273,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);
|
| + __ Move(rbx, cell);
|
| + }
|
| +
|
| CallFunctionStub stub(arg_count, flags);
|
| __ movq(rdi, Operand(rsp, (arg_count + 1) * kPointerSize));
|
| __ CallStub(&stub);
|
|
|