| Index: src/arm/stub-cache-arm.cc
|
| diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc
|
| index 74fca2e4c575d8bd14877318a6f6d277b077c329..06f8385af96731dd3cedfa0a1e4d544c87cb0f7f 100644
|
| --- a/src/arm/stub-cache-arm.cc
|
| +++ b/src/arm/stub-cache-arm.cc
|
| @@ -1387,14 +1387,8 @@ void CallStubCompiler::GenerateGlobalReceiverCheck(Handle<JSObject> object,
|
| // Get the receiver from the stack.
|
| __ ldr(r0, MemOperand(sp, argc * kPointerSize));
|
|
|
| - // If the object is the holder then we know that it's a global
|
| - // object which can only happen for contextual calls. In this case,
|
| - // the receiver cannot be a smi.
|
| - if (!object.is_identical_to(holder)) {
|
| - __ JumpIfSmi(r0, miss);
|
| - }
|
| -
|
| // Check that the maps haven't changed.
|
| + __ JumpIfSmi(r0, miss);
|
| CheckPrototypes(object, r0, holder, r3, r1, r4, name, miss);
|
| }
|
|
|
| @@ -2813,14 +2807,8 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal(
|
| // -----------------------------------
|
| Label miss;
|
|
|
| - // If the object is the holder then we know that it's a global
|
| - // object which can only happen for contextual calls. In this case,
|
| - // the receiver cannot be a smi.
|
| - if (!object.is_identical_to(holder)) {
|
| - __ JumpIfSmi(r0, &miss);
|
| - }
|
| -
|
| // Check that the map of the global has not changed.
|
| + __ JumpIfSmi(r0, &miss);
|
| CheckPrototypes(object, r0, holder, r3, r4, r1, name, &miss);
|
|
|
| // Get the value from the cell.
|
|
|