| Index: src/ia32/stub-cache-ia32.cc
|
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
|
| index 722d7182418c1c4439c3c69a9270c76837ede592..0379e30781b3f161f6558524bc14e2c72b1dd79a 100644
|
| --- a/src/ia32/stub-cache-ia32.cc
|
| +++ b/src/ia32/stub-cache-ia32.cc
|
| @@ -1203,14 +1203,9 @@ void CallStubCompiler::GenerateGlobalReceiverCheck(Handle<JSObject> object,
|
| // Get the receiver from the stack.
|
| __ mov(edx, Operand(esp, (argc + 1) * 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(edx, miss);
|
| - }
|
|
|
| // Check that the maps haven't changed.
|
| + __ JumpIfSmi(edx, miss);
|
| CheckPrototypes(object, edx, holder, ebx, eax, edi, name, miss);
|
| }
|
|
|
| @@ -2772,14 +2767,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 loads. In this case,
|
| - // the receiver cannot be a smi.
|
| - if (!object.is_identical_to(holder)) {
|
| - __ JumpIfSmi(eax, &miss);
|
| - }
|
| -
|
| // Check that the maps haven't changed.
|
| + __ JumpIfSmi(eax, &miss);
|
| CheckPrototypes(object, eax, holder, ebx, edx, edi, name, &miss);
|
|
|
| // Get the value from the cell.
|
|
|