Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index 0051edfb6c65f95e35de6f8d0fa93d791ad17db4..0ed58d79734c06bb4a3eac38a9b08a647f9e1eeb 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.cc |
@@ -1343,14 +1343,8 @@ void CallStubCompiler::GenerateGlobalReceiverCheck(Handle<JSObject> object, |
// Get the receiver from the stack. |
__ lw(a0, 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(a0, miss); |
- } |
- |
// Check that the maps haven't changed. |
+ __ JumpIfSmi(a0, miss); |
CheckPrototypes(object, a0, holder, a3, a1, t0, name, miss); |
} |
@@ -2748,14 +2742,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(a0, &miss); |
- } |
- |
// Check that the map of the global has not changed. |
+ __ JumpIfSmi(a0, &miss); |
CheckPrototypes(object, a0, holder, a3, t0, a1, name, &miss); |
// Get the value from the cell. |