| Index: src/x64/codegen-x64.cc
|
| ===================================================================
|
| --- src/x64/codegen-x64.cc (revision 6955)
|
| +++ src/x64/codegen-x64.cc (working copy)
|
| @@ -7236,19 +7236,13 @@
|
| return;
|
|
|
| } else if (slot != NULL && slot->type() == Slot::LOOKUP) {
|
| - // Call the runtime to look up the context holding the named
|
| + // Call the runtime to delete from the context holding the named
|
| // variable. Sync the virtual frame eagerly so we can push the
|
| // arguments directly into place.
|
| frame_->SyncRange(0, frame_->element_count() - 1);
|
| frame_->EmitPush(rsi);
|
| frame_->EmitPush(variable->name());
|
| - Result context = frame_->CallRuntime(Runtime::kLookupContext, 2);
|
| - ASSERT(context.is_register());
|
| - frame_->EmitPush(context.reg());
|
| - context.Unuse();
|
| - frame_->EmitPush(variable->name());
|
| - Result answer = frame_->InvokeBuiltin(Builtins::DELETE,
|
| - CALL_FUNCTION, 2);
|
| + Result answer = frame_->CallRuntime(Runtime::kDeleteContextSlot, 2);
|
| frame_->Push(&answer);
|
| return;
|
| }
|
|
|