Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 33fbee52d6c4db01f962f7c0030e58b1a44d06c8..b91b4bfbb93486d6d84709f47e46ec94cc1c602e 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -1321,14 +1321,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); |
} |
@@ -2725,14 +2719,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. |