| Index: src/mips/full-codegen-mips.cc | 
| diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc | 
| index 2440f9838362534dd70a472b133c2670b92824a7..b7d161193c6ff1ecc693edcf0f1d700a7c5254d5 100644 | 
| --- a/src/mips/full-codegen-mips.cc | 
| +++ b/src/mips/full-codegen-mips.cc | 
| @@ -3089,15 +3089,21 @@ | 
| // t2: the receiver of the enclosing function. | 
| __ lw(t2, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 
|  | 
| -  // t1: the language mode. | 
| -  __ li(t1, Operand(Smi::FromInt(language_mode()))); | 
| - | 
| -  // t0: the start position of the scope the calls resides in. | 
| -  __ li(t0, Operand(Smi::FromInt(scope()->start_position()))); | 
| +  // t1: the receiver of the enclosing function. | 
| +  Variable* this_var = scope()->LookupThis(); | 
| +  DCHECK_NOT_NULL(this_var); | 
| +  __ lw(t1, VarOperand(this_var, t1)); | 
| + | 
| +  // t0: the language mode. | 
| +  __ li(t0, Operand(Smi::FromInt(language_mode()))); | 
| + | 
| +  // a1: the start position of the scope the calls resides in. | 
| +  __ li(a1, Operand(Smi::FromInt(scope()->start_position()))); | 
|  | 
| // Do the runtime call. | 
| -  __ Push(t3, t2, t1, t0); | 
| -  __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 5); | 
| +  __ Push(t3); | 
| +  __ Push(t2, t1, t0, a1); | 
| +  __ CallRuntime(Runtime::kResolvePossiblyDirectEval, 6); | 
| } | 
|  | 
|  | 
| @@ -3130,8 +3136,9 @@ | 
|  | 
| if (call_type == Call::POSSIBLY_EVAL_CALL) { | 
| // In a call to eval, we first call RuntimeHidden_ResolvePossiblyDirectEval | 
| -    // to resolve the function we need to call.  Then we call the resolved | 
| -    // function using the given arguments. | 
| +    // to resolve the function we need to call and the receiver of the | 
| +    // call.  Then we call the resolved function using the given | 
| +    // arguments. | 
| ZoneList<Expression*>* args = expr->arguments(); | 
| int arg_count = args->length(); | 
|  | 
| @@ -3151,8 +3158,10 @@ | 
| __ push(a1); | 
| EmitResolvePossiblyDirectEval(arg_count); | 
|  | 
| -      // Touch up the stack with the resolved function. | 
| +      // The runtime call returns a pair of values in v0 (function) and | 
| +      // v1 (receiver). Touch up the stack with the right values. | 
| __ sw(v0, MemOperand(sp, (arg_count + 1) * kPointerSize)); | 
| +      __ sw(v1, MemOperand(sp, arg_count * kPointerSize)); | 
|  | 
| PrepareForBailoutForId(expr->EvalOrLookupId(), NO_REGISTERS); | 
| } | 
| @@ -4781,10 +4790,9 @@ | 
| context()->Plug(v0); | 
| } else if (proxy != NULL) { | 
| Variable* var = proxy->var(); | 
| -        // Delete of an unqualified identifier is disallowed in strict mode but | 
| -        // "delete this" is allowed. | 
| -        bool is_this = var->HasThisName(isolate()); | 
| -        DCHECK(is_sloppy(language_mode()) || is_this); | 
| +        // Delete of an unqualified identifier is disallowed in strict mode | 
| +        // but "delete this" is allowed. | 
| +        DCHECK(is_sloppy(language_mode()) || var->is_this()); | 
| if (var->IsUnallocated()) { | 
| __ lw(a2, GlobalObjectOperand()); | 
| __ li(a1, Operand(var->name())); | 
| @@ -4795,7 +4803,7 @@ | 
| } else if (var->IsStackAllocated() || var->IsContextSlot()) { | 
| // Result of deleting non-global, non-dynamic variables is false. | 
| // The subexpression does not have side effects. | 
| -          context()->Plug(is_this); | 
| +          context()->Plug(var->is_this()); | 
| } else { | 
| // Non-global variable.  Call the runtime to try to delete from the | 
| // context where the variable was introduced. | 
|  |