Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index a476a428c163149569a46d1b398c74b88dc62b41..076a2f172010ca1d4da34153e57e0ffc527ea27f 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -3046,10 +3046,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal( |
bool is_dont_delete) { |
Label success, miss; |
- __ CheckMap( |
- receiver(), scratch1(), Handle<Map>(object->map()), &miss, DO_SMI_CHECK); |
- HandlerFrontendHeader( |
- object, receiver(), Handle<JSObject>::cast(global), name, &miss); |
+ HandlerFrontendHeader(object, receiver(), global, name, &miss); |
// Get the value from the cell. |
__ mov(r3, Operand(cell)); |
@@ -3071,7 +3068,7 @@ Handle<Code> LoadStubCompiler::CompileLoadGlobal( |
__ Ret(); |
// Return the generated code. |
- return GetICCode(kind(), Code::NORMAL, name); |
+ return GetCode(kind(), Code::NORMAL, name); |
} |